docker部署后无法获取行情数据
发布于 4 个月前 作者 ritou11 240 次浏览 来自 报bug

MacOSX下,按照docker/qa-service/docker-compose.yaml部署,拉起成功后各容器均保持运行。在81端口成功登陆,访问行情界面后,无法获取股票数据,例如查询002313,qarun容器报错:

qarun                | Traceback (most recent call last):
qarun                |   File "/usr/local/lib/python3.6/site-packages/tornado/web.py", line 1590, in _execute
qarun                |     result = method(*self.path_args, **self.path_kwargs)
qarun                |   File "/usr/local/lib/python3.6/site-packages/QAWebServer/quotationhandles.py", line 255, in get
qarun                |     x1 = res.data.reset_index()
qarun                | AttributeError: 'NoneType' object has no attribute 'data'
qarun                | QUANTAXIS>> 500 GET /realtime/stock?symbol=002313&range=86400000&limit=300&prevTradeTime=1583812043258 (172.19.0.1) 21.53ms
2 回复

日线要先存数据啊 save stock_day

回到顶部