Unsubscribe

Cancel subscription to one or more channels

{"op": "unsubscribe", "args": ["<topic>"]}

Parameter Instruction

  1. op=unsubscribe
  2. The content of the args array is the subscribed topic
  3. topic is composed of <channel>:<filter>
    • channel is composed of business/name
    • filter can filter data, refer to the description of each channel for details

Example

  • Request

    {"op": "unsubscribe", "args": ["spot/ticker:BTC_USDT", "spot/ticker:ETH_USDT"]}
    
  • Response

    {"event":"unsubscribe","topic":"spot/ticker:BTC_USDT"}
    {"event":"unsubscribe","topic":"spot/ticker:ETH_USDT"}
    

results matching ""

    No results matching ""