HQChart使用教程30-K线图如何对接第3方数据40-日K叠加股票增量更新
- 叠加股票
- 叠加日K更新
- Request 字段说明
- Data.symbol
- 协议截图
- 返回json数据结构
- stock
- HQChart代码地址
- 交流
叠加股票
示例地址:https://jones2000.github.io/HQChart/webhqchart.demo/samples/kline_index_edit.html
叠加日K更新
叠加K线以后, 叠加的K线是通过“KLineChartContainer::RequestRealtimeData” 这个接口把主图增量K线和叠加增量K线一起给插件的.
HQChart使用教程30-K线图如何对接第3方数据14-轮询增量更新日K数据
Request 字段说明
Data.symbol
主图股票+叠加的股票列表,是一个数组 [0]=主图的股票 其他的都是叠加的股票
协议截图
返回json数据结构
{"stock": [{"time": 150002,"date": 20230829,"price": 7.07,"open": 7.2,"yclose": 7.15,"high": 7.5,"low": 7.03,"vol": 50437460,"amount": 357554848,"symbol": "600000.sh","name": "600000.sh"},{"time": 150002,"date": 20230825,"price": 3074.0747,"open": 3068.615,"yclose": 3082.2439,"high": 3095.047,"low": 3053.0373,"vol": 293357686,"amount": 317757373399.7,"symbol": "000001.sh","name": "000001.sh"},{"time": 150002,"date": 20230825,"price": 10180.4711,"open": 10197.9573,"yclose": 10256.1896,"high": 10212.6467,"low": 10091.8625,"vol": 10428916190,"amount": 171138489266.7,"symbol": "399001.sz","name": "399001.sz"}],"code": 0
}
stock
主图+叠加的股票的当日数据
time= 交易时间 格式 mmhhss 150003=>15:00:03
date=交易日期 格式 yyyymmdd 20191011=>2019-10-11
price=最新价格
open=开盘价
yclose=前收盘
high=最高价
low=最低价
vol=成交量
amount=成交金额
HQChart代码地址
https://github.com/jones2000/HQChart
交流
见git项目首页。