Public WebSocket
Mainnet
Contracts: wss://stream.deepcoin.com/public/ws
Spot: wss://stream.deepcoin.com/public/spotws
Access Method
# Send Heartbeat
request:
ping
response:
pong
Request Parameters
parameter | required | type | description | remark |
---|---|---|---|---|
Action | yes | string | Subscription operation | 0:Unsubscribe all;1:Subscribe;2:Unsubscribe; |
FilterValue | yes | string | Filter value | Format:$ExchangeID_$InstrumentID_$Period Period range[1m:1 minute;5m:5 minutes;15m:15 minutes;30m:30 minutes;1h:1 hour;4h:4 hours;12h:12 hours;1d:1 day;1w:1 week;1o:1 month;1y:1 year;] |
LocalNo | yes | int | Local unique identifier | Greater than 0, string comparison, customized, cannot be repeated in one session |
ResumeNo | yes | int | Resume number | 0:Start from the beginning;-1:Resume from the latest position on the server; |
TopicID | yes | string | Subscription topic ID | 2:Transaction details |
BusinessNo | no | int | Global business number | Data with BusinessNo will be transmitted starting from BusinessNo |