Skip to main content

Create Order

Place a spread combination order. Up to 50 open orders per account.

HTTP Request

POST /v5/spread/order/create

Request Parameters

ParameterRequiredTypeComments
symboltruestringSpread combination symbol name
sidetruestringOrder side. Buy, Sell
orderTypetruestringLimit, Market
qtytruestringOrder qty
pricefalsestringOrder price
orderLinkIdfalsestringUser customised order ID, a max of 45 characters. Combinations of numbers, letters (upper and lower cases), dashes, and underscores are supported.
timeInForcefalsestringTime in force. IOC, FOK, GTC, PostOnly
info

The acknowledgement of an place order request indicates that the request was sucessfully accepted. This request is asynchronous so please use the websocket to confirm the order status.

Response Parameters

ParameterTypeComments
orderIdstringSpread combination order ID
orderLinkIdstringUser customised order ID

Request Example

POST /v5/spread/order/create HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1744079410023
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 191

{
"symbol": "SOLUSDT_SOL/USDT",
"side": "Buy",
"orderType": "Limit",
"qty": "0.1",
"price": "21",
"orderLinkId": "1744072052193428479",
"timeInForce": "PostOnly"
}

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"orderId": "1b00b997-d825-465e-ad1d-80b0eb1955af",
"orderLinkId": "1744072052193428479"
},
"retExtInfo": {},
"time": 1744075839332
}