Skip to content
API reference /Account & trading

Estimate liquidation for an opening order

Request a liquidation-price estimate for a 12-contract ETH opening order. The illustrated estimate is not a calculation rule.

Endpoint & access

POST
/api/v1/usdt/order_est_liq_price

Whitelist Required

Request whitelist approval for your API key. This endpoint is available only after approval.

JSON body

Content-Type: application/json

Field Data type Required Meaning
instrument_id string YES Contract abbreviation, such as BTC or ETH.
order_type string YES limit, market, planLimit, planMarket, postOnly, fok, or ioc.
order_price decimal NO Positive order price when supplied.
trigger_price decimal NO Positive trigger price when supplied.
quantity integer YES Positive quantity in contracts.
direction string YES openLong or openShort.
leverage integer YES Positive leverage.
margin_mode string NO fixed or crossed. Defaults to crossed.

This endpoint requires a signed request. Send the request parameters in a JSON body.

Returned fields

Field Data type Meaning
liquidation_price string Estimated liquidation price.

Example input

{
  "instrument_id": "ETH",
  "order_type": "limit",
  "order_price": 2420,
  "quantity": 12,
  "direction": "openLong",
  "leverage": 5
}

Example result

{
  "code": 200,
  "message": null,
  "data": {
    "liquidation_price": "1950.5"
  }
}