Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

funcat盘中计算指标问题 #11

Open
phoenixxz opened this issue Jul 4, 2017 · 1 comment
Open

funcat盘中计算指标问题 #11

phoenixxz opened this issue Jul 4, 2017 · 1 comment

Comments

@phoenixxz
Copy link

funcat 0.2.7,python2.7 ,centos
测试代码如下:
from funcat.data.tushare_backend import TushareDataBackend
set_data_backend(TushareDataBackend())
T("20170704")
S("600030.XSHG")
print(O, H, L, C)
今天的时间就是20170704,正在盘中交易时间,取盘中交易数据,用的tushare的backend,可是仍旧会报错。
(Traceback (most recent call last):
File "3.py", line 30, in
print(O, H, L, C)
File "/usr/lib/python2.7/site-packages/funcat-0.2.7-py2.7.egg/funcat/time_series.py", line 205, in repr
return str(self.value)
File "/usr/lib/python2.7/site-packages/funcat-0.2.7-py2.7.egg/funcat/utils.py", line 26, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/funcat-0.2.7-py2.7.egg/funcat/time_series.py", line 79, in value
raise FormulaException("DATA UNAVAILABLE")
funcat.utils.FormulaException: DATA UNAVAILABLE

目前不支持盘中取数据吗?

@phoenixxz
Copy link
Author

print ts.version
0.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant