Place a new order, If The syncMode field is passed as "true" or no value is passed at all, synchronous verification will be applied, the order status can be known in advance.The syncMode field will only perform asynchronous verification when passed as "false",returning success only means that the request is successful. The final result needs to be confirmed through websocket subscription and order query.Please contact connex, if any sub portfolio required special API limits setup.
Permission
- Applies to both primary user and trading portfolio's API Key.
- Permission: TRADE.
Rate Limit
The limits below apply to this operation. Binance perpetual, Binance spot and margin combined, and OKX across all business lines are counted separately.
main portfolio:
Binance perpetual
- Rate Limit: 1200 requests per 60 seconds.
- Rate Limit: 300 requests per 10 seconds.
A request is rate-limited if it exceeds either limit.
Binance spot and margin
- Rate Limit: 1200 requests per 60 seconds.
- Rate Limit: 100 requests per 10 seconds.
A request is rate-limited if it exceeds either limit.
OKX (all business lines)
- Rate Limit: 30 requests per 2 seconds per symbol.
- Rate Limit: 500 requests per 2 seconds per user across all OKX symbols and business lines.
sub portfolio:
Binance perpetual
- Rate Limit: 20 requests per 10 seconds.
Binance spot and margin
- Rate Limit: 20 requests per 10 seconds.
OKX (all business lines)
- Rate Limit: 20 requests per 10 seconds.
Request body
Send a JSON object with Content-Type: application/json.
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| clientOrderId | String | N | Client-defined order ID. Only supports lowercase letters (a-z) and digits (0-9). Recommended length ≤ 32 characters. If omitted, ConneX will auto-generate an ID.) |
| sym | String | Y | Sym(unique identifier:Exchange_Business_Base_Counter. Example: If you want to place a SPOT order for the BTC/USDT trading pair on the Binance exchange, you can use a unique identifier like this: "BINANCE_SPOT_BTC_USDT" ; If you want to place a PERPETUAL order for the BTC/USDT trading pair on the Binance exchange, you can use a unique identifier like this: "BINANCE_PERP_BTC_USDT" ; ) Currently supports SPOT, MARGIN, PERP on BINANCE / OKX, |
| side | String | Y | Order side. Supported values: BUY, SELL. |
| orderType | String | Y | Order type(default LIMIT, support type enums:LIMIT,MARKET) |
| timeInForce | String | N | Limit Order:default GTC, support type enums:GTC,IOC,FOK,GTX. GTX = GTC + Post only. Market Order:No need to fill in, default&only IOC |
| orderQty | String | Y | Order quantity(Mandatory, unless spot market buy ) note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin |
| limitPrice | String | Conditional | Limit order price(if orderType=LIMIT,limitPrice must be fill in . Mandatory for limit order) |
| quoteOrderQty | String | Conditional | Order amount in the quote currency, only used for spot market buy orders. Limit orders must use orderQty; market sell orders must use orderQty; market buy (spot) orders must use quoteOrderQty. |
| reduceOnly | String | N | Reduce position orders only, must "true" or "false" |
| positionSide | String | Y | Position side. Supported values: NONE, LONG, SHORT. In hedge mode (BOTH) this field is required, and must be LONGor SHORT. In one-way mode (NET) this field is optional; if omitted, it defaults to NONE. |
| tpTriggerPrice | String | N | Take profit trigger price. only support PERP syms |
| tpTriggerType | String | N | Take profit trigger price type : LAST_PRICE or MARK_PRICE default LAST_PRICE. only support PERP syms |
| tpPrice | String | N | Take profit price; "0" indicates market price; default "0". only support PERP syms |
| slTriggerPrice | String | N | Stop loss trigger price. only support PERP syms |
| slTriggerType | String | N | Stop loss trigger price type : LAST_PRICE or MARK_PRICE default LAST_PRICE. only support PERP syms |
| slPrice | String | N | Stop loss price ; "0" indicates market price; default "0". only support PERP syms |
| syncMode | String | N | API synchronous validation or asynchronous validation(required "true" or "false"); default "true" |
Response
| Field name | Type | Remarks |
|---|---|---|
| orderId | String | Order ID |
| clientOrderId | String | Customer defined order ID |
Example Request
{
"sym": "BINANCE_SPOT_ETH_USDT",
"side": "BUY",
"orderType": "LIMIT",
"orderQty": "0.5",
"limitPrice": "3100",
"timeInForce": "GTC",
"clientOrderId": "myorder001"
}
Example Response
{
"code": 200000,
"message": "Success",
"data": {
"orderId": "1234567890123456",
"clientOrderId": "10003232424324324243243201"
}
}
