a tool to read stock factor data for quants
Project description
factor_reader
相关链接
安装
pip install factor_reader
使用
factor_reader目前共包含两个功能:
- 查看目前包含哪些因子,以及每个因子的基本信息
- 读取某一因子在某段时间上的因子数据
第一步:查看目前数据库中有哪些因子
import factor_reader
# 需要token请与作者联系
token='xxxxxxxxxx'
info=factor_reader.show_all_factors_information(token)
第二步:读取某个因子在某个时间段的数据
import factor_reader
# 需要token请与作者联系
token='xxxxxxxxxx'
# 读取键名为factor1的因子在2013年1月1日至2022年12月31日间的因子数据
data1=factor_reader.read_factor('factor1',token=token,start_date=20130101,end_date=20221231)
# 读取键名为factor4的因子在2023年1月13日的因子数据
data2=factor_reader.read_factor('factor4',token=token,trade_date=20230113)
# 读取键名为factor5的因子全部的因子数据
data3=factor_reader.read_factor('factor5',token=token)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
factor_reader-0.0.4.tar.gz
(14.8 kB
view hashes)
Built Distribution
Close
Hashes for factor_reader-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 655a8c6044a20512638ee1007b3f8eaab4a623a1bcdd56b380d159a9d861fd66 |
|
MD5 | 3b21bd7fc8e278061a53683f5e248c95 |
|
BLAKE2b-256 | 707e559dab52834d44172a9aa9de3ea5ba6bf44e727f5a24ff3d138e1d0e3cac |