Handicap Quote Subscription

English / 中文

Interface Description

The feature of this interface is that for each websocket connection, every time the request is sent, the background will overwrite the previous subscription request by default. After the subscription is successful, the data will be pushed.

Request - Protocol Number:22002

Data definition

FieldNameTypeRequiredDescription

symbol_list

Product List

array

Yes

See the symbol definition below for the specific format.

Symbol definition

FieldNameTypeRequiredDescription

code

Code

string

Yes

For specific content, please refer to the code list

depth_level

Depth level

uint32

No

If there is no depth_level field, the background will only provide a quote for one layer, and the requested level is greater than the actual quote level, or if there is no depth_level field, the background will provide as many layers as there are actual quotes.

Data Structure (JSON)

{
    "cmd_id":22002,
    "seq_id":123,
    "trace":"3baaa938-f92c-4a74-a228-fd49d5e2f8bc-1678419657806",
    "data":{
        "symbol_list": [
            {
        "code": "BTCUSDT",
                "depth_level": 5,
            }
    ]
    }
}

Response-protocol number:22003

Data Structure (JSON)

{
    "ret":200,
    "msg":"ok",
    "cmd_id":22003,
    "seq_id":123,
    "trace":"3baaa938-f92c-4a74-a228-fd49d5e2f8bc-1678419657806",
    "data":{
    }    
}

Official Website

Official website: https://alltick.co/

Last updated