
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
pip install factor_reader
pip install factor_reader --upgrade
factor_reader目前共包含两个功能:
import factor_reader
# 第一步:实例化一个FactorReader对象,输入token
token='xxxxxxxxxx'
fr=factor_reader.FactorReader(token)
# 第二步:查看当前因子数据库中有哪些因子(此步骤可选)
fr.show_all_factors_information() # 展示所有可读取因子的相关信息
# 第三步:读取因子数据
## ①读取单日单个因子的数据
fr.read_factor('球队硬币',trade_date=20230113) # 读取球队硬币因子在2023年1月13日的因子数据
fr.read_factor('factor4',trade_date=20230113) # 读取方正金工多因子系列第4篇的因子在2023年1月13日的因子数据
## ②读取多个交易日单个因子的数据
fr.read_factor('球队硬币',start_date=20230101,end_date=20230113) # 读取球队硬币因子从2023年1月1日至2023年1月13日的因子数据
fr.read_factor('factor4',start_date=20230101,end_date=20230113,sql_like=True) # 以sql的形式,读取方正金工多因子系列第4篇的因子从2023年1月1日至2023年1月13日的因子数据
## ③读取多个交易日多个因子的因子数据
fr.read_factor(['球队硬币','云开雾散'],start_date=20230101,end_date=20230113) # 分别读取球队硬币因子和云开雾散因子从2023年1月1日至2023年1月13日的因子数据
fr.read_factor(['球队硬币','云开雾散','飞蛾扑火'],start_date=20230101,end_date=20230113,sql_like=True) # 以sql的形式,分别读取球队硬币因子、云开雾散因子、飞蛾扑火因子从2023年1月1日至2023年1月13日的因子数据
fr.read_factor(['球队硬币','云开雾散','飞蛾扑火'],trade_date=20230113,sql_like=True) # 以sql的形式,分别读取球队硬币因子、云开雾散因子、飞蛾扑火因子2023年1月13日的因子数据
FAQs
a tool to read stock factor data for quants
We found that factor-reader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.