Place Order (TRADE)
- POST
/capi/v3/order
Request Weight
1 on 10s order rate limit(X-ORDER-COUNT-10S); 1 on 1min order rate limit(X-ORDER-COUNT-1M); 0 on IP rate limit(X-USED-WEIGHT-1M);
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| symbol | String | Yes | Trading pair, for example BTCUSDT. |
| side | String | Yes | Order side. Supported values: BUY, SELL. |
| positionSide | String | Yes | Position side. Supported values: LONG, SHORT. |
| type | String | Yes | Order type. Supported values: LIMIT, MARKET. |
| timeInForce | String | Conditional | Time-in-force policy. Required when type = LIMIT. Supported values: GTC, IOC, FOK, POST_ONLY. |
| quantity | String | Yes | Order quantity. Must be greater than 0. |
| price | String | Conditional | Limit price. Required when type = LIMIT. |
| newClientOrderId | String | Yes | Client order identifier (1-36 characters, pattern ^[\\.A-Z\:/a-z0-9_-]{1,36}$). |
| tpTriggerPrice | String | No | Optional take-profit trigger price. |
| slTriggerPrice | String | No | Optional stop-loss trigger price. |
| TpWorkingType | String | No | Take-profit trigger price source. Supported values: CONTRACT_PRICE, MARK_PRICE. Default CONTRACT_PRICE. |
| SlWorkingType | String | No | Stop-loss trigger price source. Supported values: CONTRACT_PRICE, MARK_PRICE. Default CONTRACT_PRICE. |
| reduceOnly | Boolean | No | Whether the order is reduce-only. |
Request example
Code
Response parameters
| Field | Type | Description |
|---|---|---|
| orderId | String | Order ID assigned by the system. |
| clientOrderId | String | Echo of newClientOrderId. |
| success | Boolean | Whether the order request was accepted. |
| errorCode | String | Error code when success = false; otherwise empty. |
| errorMessage | String | Error message when success = false; otherwise empty. |
Response example
Code