preCheckOrder
Pre-validate margin requirements for futures and options orders to avoid rejection due to insufficient margin. Does not place the order.
Instructions
Validate an order before placing it to check margin requirements.
Futures and options only (linear, option categories)
Returns pre/post margin rates (IMR and MMR) in E4 format
Request parameters are the same as Create Order
Useful for checking if an order would be rejected due to insufficient margin
Does not actually place the order
Agent hint: Use this endpoint to validate margin requirements before placing an order. Does not actually create an order. Only works for futures and options. TradFi: use to pre-validate margin for equity perpetuals and commodity perpetuals (category=linear) before placing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | ||
| side | Yes | ||
| price | No | ||
| symbol | Yes | ||
| orderIv | No | ||
| category | Yes | ||
| stopLoss | No | ||
| tpslMode | No | ||
| orderType | Yes | ||
| isLeverage | No | ||
| reduceOnly | No | ||
| takeProfit | No | ||
| orderLinkId | No | ||
| positionIdx | No | ||
| slOrderType | No | ||
| slTriggerBy | No | ||
| timeInForce | No | ||
| tpOrderType | No | ||
| tpTriggerBy | No | ||
| slLimitPrice | No | ||
| tpLimitPrice | No |