@qinrun/ingester-service
v1.0.8
Published
data ingestion service - model是表结构, main 方法创建表 - data_basic 获取基础数据,股票基础数据和指数基础数据 - data_quotations 行情数据(日线,周线,年线) - data_index 指数数据(日线,周线,年线) - run 获取历史数据,每日增量数据
Downloads
58
Readme
ingester
data ingestion service
- model是表结构, main 方法创建表
- data_basic 获取基础数据,股票基础数据和指数基础数据
- data_quotations 行情数据(日线,周线,年线)
- data_index 指数数据(日线,周线,年线)
- run 获取历史数据,每日增量数据
Contribution
依赖安装:
- python3
- docker
使用 python3 virtual environments
# mac & linux
$ source ./bin/activate
# windows powershell
$ ps .\bin\Activate.ps1
# 关闭虚拟环境
$ deactivate
使用pip管理依赖
# always run this first
pip install --upgrade pip setuptools wheel
# 安装依赖
pip install -r requirements.txt
# 保存依赖
pip freeze > requirements.txt
API
send a POST '/job' request to trigger the task
获取股票列表数据
{
"type": "stock_list"
}
获取行情数据
{
"type": "quotations_stock",
"args": {
"type": "daily",
"stockId": "000001.SZ"
}
}
获取指数列表数据
{
"type": "index_list"
}