Submit a new order over the authenticated WebSocket connection. The response confirms ConneX has accepted the order. The order then goes through state changes (NEW → OPEN → PARTIALLY_FILLED → FILLED / CANCELLED) which are delivered via the Orders push channel.
Tip:
You can create order by websocket after login.
This action runs over the User Data WebSocket connection at wwss://wss.connex.trade/v1/private. The server rejects everything until you send a login message, and drops the connection after 30 seconds of inactivity — see Overview for the login payload, signature and heartbeat.
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
Send the following message after login to place an order.
{
"id": "XXX",// request id
"action": "place_order",
"args":
{
"clientOrderId": "XXXX",
"sym": "BINANCE_SPOT_BTC_USDT",
"side": "BUY",
"orderType": "LIMIT",
"timeInForce": "GTC",
"orderQty": "1000",
"limitPrice": "60000",
"reduceOnly": "false"
}
}
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| id | String | N | client request id |
| action | String | Y | Must be place_order. |
| args | Object | Y | Order parameters (see below). |
| > clientOrderId | String | N | Customer defined order ID ,only support letters(a-z) and numbers(0-9) |
| > 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" ; ) Supported: SPOT / MARGIN / PERP on BINANCE and OKX; PERP on EDX. |
| > side | String | Y | Side(BUY, SELL) |
| > orderType | String | Y | LIMIT (rests on the book at a specified price) or MARKET (executes immediately at the best available price). |
| > timeInForce | String | N | Controls how long a LIMIT order stays active. GTC (Good Till Cancel, default — stays open until filled or cancelled), IOC (Immediate Or Cancel — unfilled portion is cancelled immediately), FOK (Fill Or Kill — must fill entirely or be cancelled entirely), GTX (Post-only — rejected if it would match immediately, ensuring you receive the maker rebate rate rather than paying taker fees). Do not send for MARKET orders. |
| > orderQty | String | N | 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 | N | Order price. Required when orderType is LIMIT. |
| > quoteOrderQty | String | N | Order amount in quote currency. Only for spot market buy orders (e.g. spend exactly 100 USDT to buy BTC). Cannot be used together with orderQty. |
| > reduceOnly | String | N | "true" or "false". When "true", the order can only reduce an existing position and will never open or increase one. For derivatives only. |
| > positionSide | String | N | NONE for one-way mode (default). LONGor SHORTrequired in hedge mode. |
| > tpTriggerPrice | String | N | Take profit trigger price |
| > tpTriggerType | String | N | Take profit trigger price type : LAST_PRICE or MARK_PRICE default LAST_PRICE |
| > tpPrice | String | N | Take profit price; "0" indicates market price; default "0" |
| > slTriggerPrice | String | N | Stop loss trigger price |
| > slTriggerType | String | N | Stop loss trigger price type : LAST_PRICE or MARK_PRICE default LAST_PRICE |
| > slPrice | String | N | Stop loss price ; "0" indicates market price; default "0" |
| > syncMode | String | N | API synchronous validation or asynchronous validation(required "true" or "false"); default "false" |
Response
The response is sent immediately after ConneX receives the request. A successful response means the order has been accepted — not that it has been filled.
Success example:
{
"id": "XXXX", // request id
"event": "place_order",
"code": "0",
"msg": "",
"data": {
"orderId": "XXXXX",
"clientOrderId": "XXXXX"
}
}
Fail example:
{
"id":"***", //
"event": "error",
"code": "60009",
"msg": "CreateOrder failed."
}
| Field name | Type | Remarks |
|---|---|---|
| id | String | client request id |
| event | String | Always place_order — for both success and failure responses. |
| code | String | 200000 = order accepted. Any other value indicates an error — check msg for the reason. |
| msg | String | "Success" on success, or an error message explaining why the order was rejected. |
| data | Object | Always present. On success: contains orderId and clientOrderId. On failure: empty object {}. |
| > orderId | String | Order ID.Present on success only. |
| > clientOrderId | String | Customer defined order ID.Present on success only. |
