本notebook旨在提供一个可视可交互的ipyb文件以展示QA如何从web获取各种数据,如果你想试试这些代码的效果,请下载本notebook文件到本地使用。
核心函数是QA_fetch_get_xxxxxx(数据来源,代码,日期/时间参数...)
我们没有完整的演示所有数据获取接口,需要的话请查看文档或源代码。
In [26]:
# 这一步请自行安装QA,如果报错请先自行安装报错提示缺少的包再试试,最后不行再去论坛或Q群提问,谢谢!
import QUANTAXIS as QA
In [3]:
QA.QA_fetch_get_stock_list('tdx').head(3)
Out[3]:
In [25]:
QA.QA_fetch_get_stock_day('tdx','000001','2018-08-01','2018-08-10',if_fq='bfq').head(3)
Out[25]:
In [7]:
QA.QA_fetch_get_stock_min('tdx','000001','2019-08-30 09:30:00','2019-08-31 15:00:00').head(3)
Out[7]:
In [9]:
QA.QA_fetch_get_stock_transaction('tdx','000001','2019-08-30','2019-08-30').head(3)
Out[9]:
In [14]:
QA.QA_fetch_get_future_list('tdx').head(5)
Out[14]:
In [19]:
QA.QA_fetch_get_future_day('tdx','I2001','2019-11-01','2019-11-10').head(3)
Out[19]:
In [20]:
QA.QA_fetch_get_future_min('tdx','I2001','2019-11-01 09:30:00','2019-11-01 15:00:00').head(3)
Out[20]:
In [22]:
QA.QA_fetch_get_future_transaction('tdx','I2001','2019-11-01','2019-11-01').head(3)
Out[22]: