1.0.8 • Published 2 months ago

@qinrun/ingester-service v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

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"
}
1.0.8

2 months ago

1.0.7

11 months ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago