Place Order

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 nameTypeNecessaryRemarks
clientOrderIdStringNClient-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.)
symStringYSym(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,
sideStringYOrder side. Supported values: BUY, SELL.
orderTypeStringYOrder type(default LIMIT, support type enums:LIMIT,MARKET)
timeInForceStringNLimit Order:default GTC, support type enums:GTC,IOC,FOK,GTX.
GTX = GTC + Post only.
Market Order:No need to fill in, default&only IOC
orderQtyStringYOrder 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
limitPriceStringConditionalLimit order price(if orderType=LIMIT,limitPrice must be fill in . Mandatory for limit order)
quoteOrderQtyStringConditionalOrder 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.
reduceOnlyStringNReduce position orders only, must "true" or "false"
positionSideStringYPosition 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.
tpTriggerPriceStringNTake profit trigger price. only support PERP syms
tpTriggerTypeStringNTake profit trigger price type : LAST_PRICE or MARK_PRICE
default LAST_PRICE. only support PERP syms
tpPriceStringNTake profit price; "0" indicates market price; default "0". only support PERP syms
slTriggerPriceStringNStop loss trigger price. only support PERP syms
slTriggerTypeStringNStop loss trigger price type : LAST_PRICE or MARK_PRICE
default LAST_PRICE. only support PERP syms
slPriceStringNStop loss price ; "0" indicates market price; default "0". only support PERP syms
syncModeStringNAPI synchronous validation or asynchronous validation(required "true" or "false"); default "true"

Response

Field nameTypeRemarks
orderIdStringOrder ID
clientOrderIdStringCustomer 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"
  }
}
Response

Language
LoadingLoading…
Response
Choose an example:
application/json