Skip to main content

Oco

One-Cancels-the-Other: If you submit this request, this would place a take-profit limit order and a stop-loss trigger-limit order

orderType stringrequired

One-Cancels-the-Other: If you submit this request, this would place a take-profit limit order and a stop-loss trigger-limit order

Possible values: []

symbolstringrequired

Trading pair, e.g. BTC-USDT

orderSidestringrequired

BUY or SELL

Possible values: [BUY, SELL]

orderSizedoublerequired

Order quantity in base currency

takeProfitOrderPricedoublerequired

Limit price of the take-profit leg

stopLossOrderPricedoublerequired

Limit price used once the stop-loss trigger fires

stopLossTriggerPricedoublerequired

Price that activates the stop-loss leg

stopLossTriggerPriceTypestringrequired

Reference price for the stop-loss trigger (LAST_PRICE, MARK_PRICE, or INDEX_PRICE)

Possible values: [INDEX_PRICE, LAST_PRICE, MARK_PRICE]

clOrderIdstring

Client-supplied order identifier, echoed in the response (max 64 characters)

timeInForcestring

Time-in-force policy for the take-profit leg (GTC, IOC, FOK)

Possible values: [FOK, IOC, GTC, HALFMIN, FIVEMIN, HOUR, TWELVEHOUR, DAY, WEEK, MONTH]

Default value: GTC
postOnlyboolean

If true, reject the take-profit leg if it would immediately match (post-only / maker-only)

Oco
{
"orderType": "LIMIT",
"symbol": "string",
"orderSide": "BUY",
"orderSize": 0,
"takeProfitOrderPrice": 0,
"stopLossOrderPrice": 0,
"stopLossTriggerPrice": 0,
"stopLossTriggerPriceType": "INDEX_PRICE",
"clOrderId": "string",
"timeInForce": "GTC",
"postOnly": true
}