数字货币比特币以太坊买卖五档行情数据API接口
数字货币一般包含比特币BTC、以太坊ETH、瑞波币XRP、泰达币USDT、比特币现金BCH、比特币SV、莱特币LTC、柚子币EOS、OKB、LINK、门罗币XMR、波场币TRX、NEO、以太经典ETC、Maker、大零币ZEC、新经币XEM、本体ONT、火币HT、卡尔达诺ADA、ZEC、达世币DASH等。BIGI行情是非常全面的期货数据信息接口,拥有国际期货、国内期货、贵金属、外汇、股指、期权、现货、数字货币、A股实时行情数据。能够提供标准行情接口,支持HTTP URL 请求式接口、WebSocket 推送式接口、Socket TCP 推送式接口三种接口查询和订阅方式,能够查询到的数据包括有期货的实时行情数据和历史行情数据。
下面讲述一下Websocket数字货币买卖五档行情数据API接口
服务推送过来行情(带买卖5档)
0=hq|1=2|2=BTCUSDT|3=11004.92|4=1596165600|5=0.008453|6=11004.91|7=11004.92|8=1.04339|9=9.400076|10=137.5837|11=11002.13|12=11026.92|13=10991|14=10973.58|15=----|16=10902.11|M1=11004.92,11004.92,11004.92,11004.92,0.008453,2007311120,0,11004.92|M5=11004.92,11004.92,11004.92,11004.92,0.008453,2007311120,0,11004.92|M15=11013.59,11013.59,11004.91,11004.92,23.59275,2007311115,0,11011.73|M30=11026.92,11017.77,11004.91,11004.92,79.02961,2007311100,0,11018.02|H1=11026.92,11017.77,11004.91,11004.92,79.02961,2007311100,0,11018.02|D1=11026.92,11002.13,10991,11004.92,137.5837,2007310000,0,11010.82
|b=11004.91:1.04339&11004.8:0.001594&11004.69:0.001594&11004.58:0.001594&11004.47:0.001594
|a=11004.92:8.808529&11004.93:0.007026&11005.16:0.001&11005.76:0.042446&11006.02:0.281897
.
.
.
略……
key | value |
a | 盘口数据,买卖5档,每一档量价以“&”分割,量和价之间用“:”分割,结果: 11004.92:8.808529 卖一价11004.92 卖一量8.808529 11004.93:0.007026 卖二价11004.93 卖二量0.007026 11005.16:0.001 卖三价11005.16 卖三量0.001 11005.76:0.042446 卖四价11005.76 卖四量0.042446 11006.02:0.281897 卖五价11006.02 卖五量0.281897 |
b | 盘口数据,买卖5档,每一档量价以“&”分割,量和价之间用“:”分割,结果: 11004.91:1.04339 买一价11004.91 买一量1.04339 11004.80:0.001594 买二价11004.80 买二量0.001594 11004.69:0.001594 买三价11004.69 买三量0.001594 11004.58:0.001594 买四价11004.58 买四量0.001594 11004.47:0.001594 买五价11004.47 买五量0.001594 |
同学们,看懂了吗?如有疑问向BIGI行情进行了解。欢迎留言讨论。