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
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
Request Body
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
Close all trades
PUT
https://api.liquid.com/trades/close_all
Closes live positions (live trades).
Request Body
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
Request Body
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
Request Body
Last updated