preCheckOrder
Check margin requirements for futures and options orders before placement. Validate if order would be rejected due to insufficient margin without executing it.
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 |
|---|---|---|---|
| category | Yes | ||
| symbol | Yes | ||
| side | Yes | ||
| orderType | Yes | ||
| qty | Yes | ||
| price | No | ||
| isLeverage | No | ||
| timeInForce | No | ||
| positionIdx | No | ||
| orderLinkId | No | ||
| takeProfit | No | ||
| stopLoss | No | ||
| tpTriggerBy | No | ||
| slTriggerBy | No | ||
| reduceOnly | No | ||
| tpslMode | No | ||
| tpLimitPrice | No | ||
| slLimitPrice | No | ||
| tpOrderType | No | ||
| slOrderType | No | ||
| orderIv | No |