-
国内期货市场上,有夜盘的期货的开盘价应该是夜盘21:00开始的第一笔成交价,但用Tushare的数据接口`pro_bar`获取的日线行情对于开盘价的计算却是不一致的,有时错误,有时正确。
## Case I
```
# rb1810 bars with interval of 5 minutes
df5 = ts.pro_bar(ts_code='RB1810.SHF', asse…
-
```
root@131:~/StcokVisualization# python3 manage.py refresh_data
[Getting data:]#Traceback (most recent call last):
File "manage.py", line 15, in
execute_from_command_line(sys.argv)
Fil…
-
/usr/local/lib/python3.6/site-packages/tushare/stock/macro.py in get_ppi()
226 rdint))
227 text = urlopen(request, timeout=10).read()
--> 228 t…
-
初次使用tushare,调用接口ts.get_hist_data('600848')
报错:
使用的版本为1.2.59
是什么原因呢,求赐教
-
刚开始用tushare pro,下面的测试脚本只返回空的DataFrame(也没有任何报错),可能是什么原因呢?
# -*- coding: utf-8 -*-
import os
from datetime import date
import tushare as ts
import pandas as pd
__ts_token__ = ''
def test(…
-
>>> ts.__version__
'1.2.59'
>>> ts.get_k_data('603986', start='2020-04-01', autype='qfq')
date open close high low volume code
58 2020-04-01 237.00 242.29 252.10 …
7forz updated
4 years ago
-
df = self.pro.moneyflow_hsgt(trade_date=dates[0])
File "..\Tushare\lib\site-packages\tushare\pro\client.py", line 44, in query
raise Exception(result['msg'])
Exception: 系统未知错误,欢迎上报! 谢谢!re…
-
这个还蛮有用的
-
-
提示 import websocket module error . pip websocket 以后,依然还有 import error