行情数据字段列表
# 5.5. 附录5 行情数据字段列表
# tick - 分笔数据
time- int 时间戳stime- str 时间戳lastPrice- float 最新价open- float 开盘价high- float 最高价low- float 最低价lastClose- float 前收盘价amount- float 成交总额volume- int 成交总量pvolume- int 原始成交总量(未经过股手转换的成交总量)stockStatus- int 证券状态openInt- int 持仓量transactionNum- float 成交笔数(期货没有,单独计算)lastSettlementPrice- float 前结算(股票为0)settlementPrice- float 今结算(股票为0)askPrice- list[float] 多档委卖价askVol- list[int] 多档委卖量bidPrice- list[float] 多档委买价bidVol- list[int] 多档委买量
# 1m / 5m / 1d - K线数据
time- int 时间戳stime- str 时间戳open- float 开盘价high- float 最高价low- float 最低价close- float 收盘价volume- int 成交量amount- float 成交额settelementPrice- float 今结算openInterest- int 持仓量
# l2quote - Level2行情快照
time- int 时间戳stime- str 时间戳lastPrice- float 最新价open- float 开盘价high- float 最高价low- float 最低价amount- float 成交额volume- int 成交总量pvolume- int 原始成交总量(未经过股手转换的成交总量)stockStatus- int 证券状态openInt- int 持仓量transactionNum- int 成交笔数(期货没有,单独计算)lastClose- float 前收盘价lastSettlementPrice- float 前结算(股票为0)settlementPrice- float 今结算(股票为0)askPrice- list[float] 多档委卖价askVol- list[int] 多档委卖量bidPrice- list[float] 多档委买价bidVol- list[int] 多档委买量
# l2quoteaux - Level2行情快照补充
time- int 时间戳stime- str 时间戳avgBidPrice- float 委买均价totalBidQuantity- int 委买总量avgOffPrice- float 委卖均价totalOffQuantity- int 委卖总量withdrawBidQuantity- int 买入撤单总量withdrawBidAmount- float 买入撤单总额withdrawOffQuantity- int 卖出撤单总量withdrawOffAmount- float 卖出撤单总额
# l2order - Level2逐笔委托
time- int 时间戳stime- float 时间戳price- float 委托价volume- int 委托量entrustNo- int 委托号entrustType- int 委托类型entrustDirection- int 委托方向
注:上交所的撤单信息在逐笔委托的委托方向,区分撤买撤卖- 0 - 未知
- 1 - 买入
- 2 - 卖出
- 3 - 撤买(上交所)
- 4 - 撤卖(上交所)
# l2transaction - Level2逐笔成交
time- int 时间戳stime- str 时间戳price- float 成交价volume- int 成交量amount- float 成交额tradeIndex- int 成交记录号buyNo- int 买方委托号sellNo- int 卖方委托号tradeType- int 成交类型tradeFlag- int 成交标志
注:深交所的在逐笔成交的成交标志,只有撤单,没有方向- 0 - 未知
- 1 - 外盘
- 2 - 内盘
- 3 - 撤单
# l2transactioncount - Level2逐笔成交统计
time- int 时间戳stime- str 时间戳bidNumber- int 主买单总单数bidMostVolmue- int 主买特大单成交量bidBigVolmue- int 主买大单成交量bidMediumVolmue- int 主买中单成交量bidSmallVolmue- int 主买小单成交量offNumber- int 主卖单总单数offMostVolmue- int 主卖特大单成交量offBigVolmue- int 主卖大单成交量offMediumVolmue- int 主卖中单成交量offSmallVolmue- int 主卖小单成交量bidMostAmount- float 主买特大单成额bidBigAmount- float 主买大单成交额bidMediumAmount- float 主买中单成交额bidSmallAmount- float 主买小单成交额offMostAmount- float 主卖特大单成交额offBigAmount- float 主卖大单成交额offMediumAmount- float 主卖中单成交额offSmallAmount- float 主卖小单成交额ddx- float 大单动向ddy- float 涨跌动因ddz- float 大单差分zjbyNetInflow- int 资金博弈 净流入zjbyMost- int 资金博弈 超大单zjbyBig- int 资金博弈 大单zjbyMedium- int 资金博弈 中单zjbySmall- int 资金博弈 小单netOrder- int 净挂netWithdraw- int 净撤withdrawBid- int 总撤买withdrawOff- int 总撤卖unactiveBidMostVolmue- int 被动买特大单成交量unactiveBidBigVolmue- int 被动买大单成交量unactiveBidMediumVolmue- int 被动买中单成交量unactiveBidSmallVolmue- int 被动买小单成交量unactiveOffMostVolmue- int 被动卖特大单成交量unactiveOffBigVolmue- int 被动卖大单成交量unactiveOffMediumVolmue- int 被动卖中单成交量unactiveOffSmallVolmue- int 被动卖小单成交量unactiveBidMostAmount- float 被动买特大单成额unactiveBidBigAmount- float 被动买大单成交额unactiveBidMediumAmount- float 被动买中单成交额unactiveBidSmallAmount- float 被动买小单成交额unactiveOffMostAmount- float 被动卖特大单成交额unactiveOffBigAmount- float 被动卖大单成交额unactiveOffMediumAmount- float 被动卖中单成交额unactiveOffSmallAmount- float 被动卖小单成交额
# l2orderqueue - Level2委买委卖队列
time- int 时间戳stime- str 时间戳bidLevelPrice- float 委买价bidLevelVolume- list[int] 委买量offerLevelPrice- float 委卖价offerLevelVolume- list[int] 委卖量
# 证券状态
对应openint字段
- 0,10 - 默认为未知
- 1 - 停牌
- 11 - 开盘前S
- 12 - 集合竞价时段C
- 13 - 连续交易T
- 14 - 休市B
- 15 - 闭市E
- 16 - 波动性中断V
- 17 - 临时停牌P
- 18 - 收盘集合竞价U
- 19 - 盘中集合竞价M
- 20 - 暂停交易至闭市N
- 21 - 获取字段异常
- 22 - 盘后固定价格行情
- 23 - 盘后固定价格行情完毕
# 委托类型
- level2逐笔委托 -
entrustType委托类型
0 - 未知
1 - 正常交易业务
2 - 即时成交剩余撤销
3 - ETF基金申报
4 - 最优五档即时成交剩余撤销
5 - 全额成交或撤销
6 - 本方最优价格
7 - 对手方最优价格
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 委托方向
注:上交所的撤单信息在逐笔委托的委托方向,区分撤买撤卖
- 0 - 未知
- 1 - 买入
- 2 - 卖出
- 2 - 撤买(上交所)
- 4 - 撤卖(上交所)
# 成交标记
注:深交所的在逐笔成交的成交标志,只有撤单,没有方向
- 0 - 未知
- 1 - 外盘
- 2 - 内盘
- 3 - 撤单(深交所)
上次更新: 2023/10/12, 10:46:32

