Ticker
Interface Description
The interface feature is that for each websocket connection, each time the request is sent, the backend will overwrite the previous subscription request by default. After the subscription is successful, data will be pushed.
Request-Protocol Number: 14000
Data format:json
Data Structure
data definition
Symbol definition
Request Example
Copy
Response-Protocol Number: 14001
Data format:json
Data Structure
data definition
Tick definition
tick_deep definition
Example Response
Copy
Push data
illustrate
This quote push mainly includes transaction and one-level depth quotes. It is a comprehensive quote push. The data content is a string. Currently, one quote is pushed at a time. The backend service will push the data to the requester who sends a real-time quote subscription request.
Field Explanation
p(product ID, quote transaction type, transaction mode, quote sequence number, quote timestamp, current price, first tier bid price, first tier ask price, first tier bid volume, first tier ask volume); “p(symbol_id,trade_type,trade_mode,seq,tick_time,price,price_bid1,price_ask1,volume_bid1,volume_ask1);” trade_type value meaning 1: full position contract, 2: single position contract, 3: leverage, 5: spot, 6: stock trade_mode value meaning 1: MM, 2: butterfly MM, 3: matching, 4: aggregation
Push data example
p(1123,1,0,1232312,34545435345,6.23,6.23,6.24,123,234);
Last updated