跳到主要内容

WebSocket公有频道

主网

合约: wss://stream.deepcoin.com/streamlet/trade/public/swap?platform=api

现货: wss://stream.deepcoin.com/streamlet/trade/public/spot?platform=api

访问方式

# 发送心跳
request:
ping
response:
pong

请求参数

parameterrequiredtypedescriptionremark
Actionyesstring订阅操作0:全部退订;1:订阅;2:退订;
FilterValueyesstring过滤值格式:$ExchangeID_$InstrumentID_$Period Period 取值范围[1m:1 分钟;5m:5 分钟;15m:15 分钟;30m:30 分钟;1h:1 小时;4h:4 小时;12h:12 小时;1d:一天;1w:一个星期;1o:一个月;1y:一年;]
LocalNoyesint本地唯一标识号大于 0, 字符串比较, 自定义,一次会话中不能重复
ResumeNoyesint续传号0:从头开始;-1:从服务端最新位置续传;
TopicIDyesstring订阅主题标识2:成交明细