Submit an order
Place a 12-contract ETH limit order and use the returned order ID in the order-detail examples.
Endpoint & access
POST
/api/v1/usdt/orderWhitelist Required
Request whitelist approval for your API key. This endpoint is available only after approval.
Rate limit
-
2 requests / 1 second
-
HTTP requests will be restricted for one hour if positions are opened and closed less than 10 seconds apart more than 10 times within 60 minutes.
JSON body
Content-Type: application/json
| Field | Data type | Required | Meaning |
|---|---|---|---|
| instrument_id | string | YES | Contract abbreviation, for example BTC, ETH, BCH, or BSV. |
| direction | string | YES | Order direction: openLong opens a long position; openShort opens a short position; closeLong closes a long position; closeShort closes a short position. |
| leverage | string | YES | leverage |
| order_type | string | YES | Order type: limit (limit order), market (market order), or postOnly (maker only). |
| order_price | string | Conditional | Order price as a string. Required for limit orders; omitted for market orders. |
| quantity | string | YES | Number of contracts to buy or sell. |
| margin_mode | string | YES | Margin mode: fixed (isolated) or crossed (full position). |
| take_profit_price | string | NO | Take profit price |
| stop_lose_price | string | NO | Stop-loss price |
| trigger_way | string | NO | TP & SL trigger source. Must be "mark" (mark price) or "latest" (latest market price). Defaults to "latest". |
| position_mode | string | NO | "merged" or "separated". Defaults to "merged". When "trader mode" is on, this field must be set to "separated". |
| separated_position_id | string | NO | Required when direction is "closeLong" or "closeShort" and "trader mode" is on. Obtain this value from "/api/v1/usdt/position_list". |
| planOrderId | long | NO | Related plan order ID. |
| tpOrderPrice | decimal | NO | Take-profit order price. |
| slOrderPrice | decimal | NO | Stop-loss order price. |
| tpTriggerWay | string | NO | Take-profit trigger source: mark or latest. |
| slTriggerWay | string | NO | Stop-loss trigger source: mark or latest. |
Returned fields
| Field | Data type | Meaning |
|---|---|---|
| order_id | string | Order ID |
Example input
JSON request body:
{
"instrument_id": "ETH",
"direction": "openLong",
"leverage": "5",
"order_type": "limit",
"order_price": "2420",
"quantity": "12",
"margin_mode": "fixed",
"take_profit_price": "2580",
"stop_lose_price": "2320"
}
Example result
If the order includes take-profit or stop-loss prices, use its order_id with /api/v1/usdt/order_info to retrieve those instructions.