-
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tushare/__init__.py", line 82, in
from tushare.pro.data_pro import (pro_api, pro_bar, subs, ht_subs)
File…
-
https://tushare.pro/document/2?doc_id=124
-
Ask anything you want about mplfinance usage, project philosophy and/or priorities, or anything else related to mplfinance.
I tried many version but it don't work.
-
官方文档有一个过期的50行更换tushare数据源的办法,但是那个tushare还是过去的老版本的函数,现在已经是Pro版本了。是否有更换成tushare或者其他数据源的办法呢?最好是有现成的mod可以使用。如果不能更换数据源, 那这个rqalpha和米筐官方的本地回测框架又有什么区别了?
-
兔君,日线的前复权是乘以前复权因子直接取小数点后前三位吗?
-
从复权因子接口获取的复权因子,如何计算前复权的数据呢?我使用如下公式计算前复权数据:
```
当日收盘价 * (当日复权因子 / 最新复权因子)
```
发现并不能完全匹配 `ts.pro_bar` 返回的前复权数据。
使用的是如下的测试代码:
```python
import tushare as ts
from config import config
d…
-
1.Akshare可以通过api来获得所有基金的编码:
import akshare as ak
fund_em_fund_name_df = ak.fund_em_fund_name()
print(fund_em_fund_name_df)
2.tushare用类似api获得场内或者场外基金所有编码:
df = pro.fund_basic(market='E')
3.xa…
-
批量读取日线数据,返回超出几倍的异常数据
调用代码如下
data = ts.pro_bar(ts_code='000001.SZ,000002.SZ,000004.SZ', adj='qfq', start_date='20210317', end_date='20210319')
股票代码是三个,日期间隔3天,应返回9行数据,结果返回27行,个股的每日数据重复三次,且开盘价格等还不一…
-
科创板以 `689`开头的公司没有包含在内.
比如九号公司 689009
-
刚注册的用户无法访问 stock_basic 提示没有权限。 在https://tushare.pro/document/1?doc_id=108 并没有看到有积分要求。 是因为这个接口需要积分了? 或是刚注册需要等系统更新?或是因为IP地址不是在境内?
谢谢