VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 6
声望: 0

token用官方sdk是能正常登录请求的

Member
avatar
加入于:
帖子: 1511
声望: 109

报错截图贴一个?

Member
avatar
加入于:
帖子: 6
声望: 0

韭韭有神 wrote:

token用官方sdk是能正常登录请求的
Traceback (most recent call last):
File "D:\veighna_studio\lib\site-packages\vnpy\trader\ui\widget.py", line 650, in connect
self.main_engine.connect(setting, self.gateway_name)
File "D:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 172, in connect
gateway.connect(setting)
File "D:\veighna_studio\lib\site-packages\vnpy_gm\gm_gateway.py", line 139, in connect
self.md_api.init()
File "D:\veighna_studio\lib\site-packages\vnpy_gm\gm_gateway.py", line 204, in init
self.query_contract()
File "D:\veighna_studio\lib\site-packages\vnpy_gm\gm_gateway.py", line 212, in query_contract
sh_data: DataFrame = self.pro.query("stock_basic", exchange="SSE", list_status="L", fields="symbol,name,exchange")
File "D:\veighna_studio\lib\site-packages\tushare\pro\client.py", line 45, in query
raise Exception(result['msg'])
Exception: 抱歉,您输入的TOKEN无效!

提示token无效,但是用的掘金官方sdk是可以请求到信息的,不知哪部出了问题

Member
avatar
加入于:
帖子: 4816
声望: 291

tushare账户配置有问题,3.3.0的发布公告有介绍

Member
avatar
加入于:
帖子: 6
声望: 0

xiaohe wrote:

tushare账户配置有问题,3.3.0的发布公告有介绍
老哥有链接吗?下载的3.7社区版,没有登录过其他的账号,就注册了掘金,然后登录就提示报错

Member
avatar
加入于:
帖子: 4816
声望: 291

https://www.vnpy.com/forum/topic/30888-veighnafa-bu-v3-3-0-jue-jin-fang-zhen-jiao-yi-jie-kou

Member
avatar
加入于:
帖子: 6
声望: 0

xiaohe wrote:

https://www.vnpy.com/forum/topic/30888-veighnafa-bu-v3-3-0-jue-jin-fang-zhen-jiao-yi-jie-kou
感谢,按照这个教程可以连上了

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】