返回列表 发布新帖

xtdata.get_full_tick获取的lastClose价格不对

34 2

'002869.SZ': {'timetag': '20250703 11:30:00', 'lastPrice': 23.38, 'open': 23.44, 'high': 23.58, 'low': 23.2, 'lastClose': 23.93, 'amount': 21997000, 'volume': 9386, 'pvolume': 938600, 'stockStatus': 0, 'openInt': 14, 'settlementPrice': 0, 'lastSettlementPrice': 0, 'askPrice': [0, 0, 0, 0, 0], 'bidPrice': [0, 0, 0, 0, 0], 'askVol': [0, 0, 0, 0, 0], 'bidVol': [0, 0, 0, 0, 0]}

评论2

新手刚上路
发表于 昨天 12:38 | 显示全部楼层
我刚好也在弄数据,路过看到,帮你试试:
你的数据不仅仅是lastClose的问题,时间戳 ’time’字段也没有了,5档数据全是空的呀 。
咱俩拿到的都是同一个时间的数据 'timetag': '20250703 11:30:00'   

xtdata.get_full_tick(["002869.SZ"])
Out[3]:
{'002869.SZ': {'time': 1751513400000,
  'timetag': '20250703 11:30:00',
  'lastPrice': 23.38,
  'open': 23.44,
  'high': 23.58,
  'low': 23.2,
  'lastClose': 23.33,
  'amount': 21997000,
  'volume': 9386,
  'pvolume': 938600,
  'stockStatus': 4,
  'openInt': 14,
  'settlementPrice': 0,
  'lastSettlementPrice': 23.33,
  'askPrice': [23.39, 23.4, 23.43, 23.44, 23.45],
  'bidPrice': [23.38, 23.37, 23.36, 23.35, 23.34],
  'askVol': [26, 5, 35, 6, 82],
  'bidVol': [193, 50, 33, 30, 85]}}
*******0579_J51Wm
发表于 昨天 12:59 | 显示全部楼层
新手刚上路 发表于 2025-7-3 12:38
我刚好也在弄数据,路过看到,帮你试试:
你的数据不仅仅是lastClose的问题,时间戳 ’time’字段也没有了 ...

五档数据是可以选的

回复

您需要登录后才可以回帖 登录 | 立即注册

客服专线

400-080-8112

用思考的速度交易,用真诚的态度合作,我们是认真的!
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2025 迅投QMT社区 版权所有 All Rights Reserved. 京ICP备2025122616号-3
关灯 快速发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表