BaoStock datafeed for vn.py quant trading framework.
Project description
vn.py框架的BaoStock数据服务接口
说明
基于baostock模块的0.8.8版本开发,支持以下中国金融市场的K线数据:
- 股票:
- SSE:上海证券交易所
- SZSE:深圳证券交易所
安装
安装需要基于2.6.0版本以上的VN Studio。
直接使用pip命令:
pip install vnpy_baostock
或者下载解压后运行:
python setup.py install
使用
在vn.py中使用BaoStock时,需要在全局配置中填写以下字段信息:
名称 | 含义 | 必填 | 举例 |
---|---|---|---|
datafeed.name | 名称 | 是 | baostock |
datafeed.username | 用户名 | 否 | anonymous |
datafeed.password | 密码 | 否 | 123456 |
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
vnpy_baostock-1.0.1.tar.gz
(4.3 kB
view details)
File details
Details for the file vnpy_baostock-1.0.1.tar.gz
.
File metadata
- Download URL: vnpy_baostock-1.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fbc0fc45e3b0e8b3d347a93207b5278d3bba5abec1093a064f57220d64dcd84 |
|
MD5 | 9c7824421871158fa95488f0ec368901 |
|
BLAKE2b-256 | 0fa14eb24e91bce9bf58d49abafee1ff3160aa860c236fe58edb0842a9098cbc |