Skip to main content

User Stop Order Subscription

Reminder
  • Before using this endpoint, please call the "server.sign" method for signature authorization.
  • The push delay of this method is: real-time

User Stop Order Subscription

  • Method: stop.subscribe
  • Parameters:
Parameter NameRequiredTypeNotes
market_listtrue[]stringMarket list. Empty list to subscribe to all markets.
  • Example:
// Subscribe to a singular market
{
"method": "stop.subscribe",
"params": {"market_list": ["BTCUSDT"]},
"id": 1
}

// Subscribe to multiple markets
{
"method": "stop.subscribe",
"params": {"market_list": ["BTCUSDT", "ETHUSDT"]},
"id": 1
}

// Subscribe to all markets
{
"method": "stop.subscribe",
"params": {"market_list": []},
"id": 1
}

Stop Order Update Push

  • Method: stop.update
  • Parameters:
Parameter NameTypeNotes
eventstringStop order update event type
stopobjectStop order info
stop.stop_idintOrder id
stop.marketstringMarket name
stop.sidestringBuy or sell
stop.typestringOrder type, limit, market, GTC, IOC or FOK
stop.pricestringOrder price after triggering, market order as "0"
stop.amountstringOrder quantity after triggering
stop.trigger_pricestringStop price
stop.trigger_directionstringStop order trigger direction
stop.trigger_price_typestringTrigger price type, latest_price or mark_price or index_price
stop.taker_fee_ratestringTaker rate
stop.maker_fee_ratestringMaker rate
stop.client_idstringUser-defined id
stop.statusstringStop order status
stop.created_atintOrder creation time (milliseconds)
stop.updated_atintOrder update time (milliseconds)
  • Example:
{
"method": "stop.update",
"data": {
"event": "put",
"stop": {
"stop_id": 98389557871,
"market": "BTCUSDT",
"side": "sell",
"type": "limit",
"price": "20000.00",
"amount": "0.0100",
"trigger_price": "20000.00",
"trigger_direction": "higer",
"trigger_price_type": "index_price",
"taker_fee_rate": "0.00046",
"maker_fee_rate": "0.00026",
"client_id": "",
"status": "active_success",
"created_at": 1689146382674,
"updated_at": 1689146382674
}
},
"id": null
}

Cancel Stop Order Subscription

  • Method: stop.unsubscribe
  • Parameters:
Parameter NameRequiredTypeNotes
market_listtrue[]stringMarket list. Empty list to subscribe to all markets.
  • Example:
// Unsubscribe to a singular market
{
"method": "stop.unsubscribe",
"params": {"market_list": ["BTCUSDT"]},
"id": 1
}

// Unsubscribe to multiple markets
{
"method": "stop.unsubscribe",
"params": {"market_list": ["BTCUSDT", "ETHUSDT"]},
"id": 1
}

// Unsubscribe to all markets
{
"method": "stop.unsubscribe",
"params": {"market_list": []},
"id": 1
}