这个平台可对接产品包括:印股、台股、美股、港股、A股、外汇、贵金属、国际期货、国内期货、国际金银、数字货币、股指期货、等数据的对接
产品代码获取地址:http://39.107.99.235:1008/market/market.php
数据解析
服务器实时推送的行情数据为以下格式:
{
"body": {
"StockCode": "btcusdt",
"Price": 27206.02,
"Open": 26689.98,
"LastClose": 27206.02,
"High": 27287.74,
"Low": 26554.35,
"Time": "2023-05-28 15:43:51",
"LastTime": "1685259831",
"BP1": 27206.02,
"BV1": 0.21,
"SP1": 27206.03,
"SV1": 0.78,
"TotalVol": 2293.14,
"Depth": {
"Buy": [
{
"BP1": 27206.02,
"BV1": 0.39
},
{
"BP2": 27204.14,
"BV2": 0
},
{
"BP3": 27204.13,
"BV3": 1.28
},
{
"BP4": 27203.32,
"BV4": 0.64
},
{
"BP5": 27203.3,
"BV5": 0.68
}
],
"Sell": [
{
"SP1": 27206.03,
"SV1": 0.78
},
{
"SP2": 27206.22,
"SV2": 0.04
},
{
"SP3": 27206.96,
"SV3": 0.02
},
{
"SP4": 27208.13,
"SV4": 0.01
},
{
"SP5": 27208.14,
"SV5": 0.07
}
]
},
"BS": [
{
"time": "15:43:51",
"price": 27206.02,
"size": 0.21,
"direction": 2
},
{
"time": "15:43:51",
"price": 27206.03,
"size": 0.78,
"direction": 1
}
],
"Info": [
],
"lastSize": 0.055118,
"Diff": 516.04,
"DiffRate": 1.93
}
}
以上就是数据对接过程,有不懂的可以留言!!!
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...