Trading
Get Trades
GET
https://api.liquid.com/trades?product_id={product_id}&funding_currency={funding_currency}
Get trades by applying optional filters.
Query Parameters
Name | Type | Description |
---|---|---|
product_id | string | Product ID |
funding_currency | string | Filter by example: |
status | string | Filter by |
side | string | Filter by |
trading_type | string | Filter by |
Available Leverage
GET
https://api.liquid.com/users/leverage_limitation
Get an account's available choices in leverage.
Close a Trade
PUT
https://api.liquid.com/trades/{trade_id}/close
Close a live position (live trade) by specifying the trade ID and quantity.
Path Parameters
Name | Type | Description |
---|---|---|
trade_id | string | Example Trade ID: |
Request Body
Name | Type | Description |
---|---|---|
closed_quantity | string | Partially close 0.00056 quantities with |
Claim a Trade
PUT
https://api.liquid.com/trades/{trade_id}/claim
Claim a trade by specifying its ID. This works only for Margin pairs where the funding currency is similar to the quote currency i.e. trade BTCUSD with USD.
Path Parameters
Name | Type | Description |
---|---|---|
trade_id | string | Example of trade ID: |
Close all trades
PUT
https://api.liquid.com/trades/close_all
Closes live positions (live trades).
Request Body
Name | Type | Description |
---|---|---|
side | string |
|
Update a Trade
PUT
https://api.liquid.com/trades/{trade_id}
Provide either only the stop loss price, only the take profit price, or both.
Path Parameters
Name | Type | Description |
---|---|---|
trade_id | string | Example trade ID: |
Request Body
Name | Type | Description |
---|---|---|
stop_loss | string | Update stop loss with |
take_profit | string | Update take profit with |
Adjust Allocated Margin
PUT
https://api.liquid.com/trades/{trade_id}/adjust_margin
For isolated margin trades only. Adjust a trade's allocated margin a.k.a. margin used.
Path Parameters
Name | Type | Description |
---|---|---|
trade_id | string | Example trade ID: |
Request Body
Name | Type | Description |
---|---|---|
amount | string |
|
Last updated