如何获取股票所属板块以及板块成交量呢?

用户头像mo_****52320
2024-09-12 发布

结论是:

1、无法获取股票对应的板块

2、无法获取概念对应的成交量

尝试:

1、股票和所属板块没有关联表,可以查到同花顺板块

2、成交量方面,试过同花顺概念&板块出来的code等通过get_price查询都无效

有没有同花顺大佬出来回答一下啊

评论

用户头像
2024-09-12 11:20:41

industrys = get_industry_relate(date='now', types='industryid2', fields=None)
print(industrys['industry_thscode'])
get_tick(industrys['industry_thscode'].tolist(), '2024-09-12 9:00:00', '2024-09-12 9:25:00', fields=['current'])

这个函数也只能取今天的数据,昨天的数据就是空的

评论
用户头像
2024-09-12 14:20:21

industrys = get_industry_relate(date='now', types='industryid2', fields=None)
print(industrys['industry_thscode'])
get_tick(industrys['industry_thscode'].tolist(), '2024-09-12 9:00:00', '2024-09-12 9:25:00', fields=['current'])

这个函数也只能取今天的数据,昨天的数据就是空的

评论
用户头像
mo_****52320回复:mx_****10257
2024-09-12 20:39:58

industrys = get_industry_relate(date='now', types='industryid2', fields=None)
print(industrys['industry_thscode'])
get_tick(industrys['industry_thscode'].tolist(), '2024-09-12 9:00:00', '2024-09-12 9:25:00', fields=['current'])

这个函数也只能取今天的数据,昨天的数据就是空的

评论
用户头像
mo_****52320回复:sup****nd001
2024-09-12 20:47:57

industrys = get_industry_relate(date='now', types='industryid2', fields=None)
print(industrys['industry_thscode'])
get_tick(industrys['industry_thscode'].tolist(), '2024-09-12 9:00:00', '2024-09-12 9:25:00', fields=['current'])

这个函数也只能取今天的数据,昨天的数据就是空的

评论
用户头像
mo_****52320回复:mx_****10257
2024-09-12 21:05:58

industrys = get_industry_relate(date='now', types='industryid2', fields=None)
print(industrys['industry_thscode'])
get_tick(industrys['industry_thscode'].tolist(), '2024-09-12 9:00:00', '2024-09-12 9:25:00', fields=['current'])

这个函数也只能取今天的数据,昨天的数据就是空的

评论
用户头像
2024-09-12 22:29:24

industrys = get_industry_relate(date='now', types='industryid2', fields=None)
print(industrys['industry_thscode'])
get_tick(industrys['industry_thscode'].tolist(), '2024-09-12 9:00:00', '2024-09-12 9:25:00', fields=['current'])

这个函数也只能取今天的数据,昨天的数据就是空的

评论
用户头像
mo_****52320回复:mx_****10257
2024-09-12 23:15:15

industrys = get_industry_relate(date='now', types='industryid2', fields=None)
print(industrys['industry_thscode'])
get_tick(industrys['industry_thscode'].tolist(), '2024-09-12 9:00:00', '2024-09-12 9:25:00', fields=['current'])

这个函数也只能取今天的数据,昨天的数据就是空的

评论

需要帮助?

试试AI小助手吧