Skip to main content

Tushare datafeed for VeighNa quant trading framework.

Project description

VeighNa框架的TuShare数据服务接口

说明

基于tushare模块的1.4.7版本开发,支持以下中国金融市场的K线数据:

  • 期货:
    • CFFEX:中国金融期货交易所
    • SHFE:上海期货交易所
    • DCE:大连商品交易所
    • CZCE:郑州商品交易所
    • INE:上海国际能源交易中心
  • 股票:
    • SSE:上海证券交易所
    • SZSE:深圳证券交易所
    • BSE:北京证券交易所

注意:需要使用相应的数据服务权限,可以通过该页面注册使用。

数据使用事项

tushare数据源期货数据中,第一条夜盘k线数据是集合竞价数据,用户可以根据自己需求进行过滤或者合并。

安装

安装环境推荐基于3.9.0版本以上的【VeighNa Studio】。

直接使用pip命令:

pip install vnpy_tushare

或者下载源代码后,解压后在cmd中运行:

pip install .

使用

在VeighNa中使用TuShare时,需要在全局配置中填写以下字段信息:

名称 含义 必填 举例
datafeed.name 名称 tushare
datafeed.username 用户名 token
datafeed.password 密码 c3a110417f08f26d2c221edc0c50d4a8a5001502eea89cf5

单元测试

单元测试代码目录为./tests/test_*.py

# 指定文件执行单元测试
python -m unittest tests\test_your_file_name.py

# 全量执行
python -m unittest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vnpy_tushare-1.4.7.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

vnpy_tushare-1.4.7.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file vnpy_tushare-1.4.7.0.tar.gz.

File metadata

  • Download URL: vnpy_tushare-1.4.7.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for vnpy_tushare-1.4.7.0.tar.gz
Algorithm Hash digest
SHA256 e2d9fb8a18d7aa014ee63547431e38b6e93398c2325921e3be3d0192747c0b32
MD5 9161a8201c622a3a2acfb68c222c551d
BLAKE2b-256 2db2cbf4c8fe2837d58d977b6442297ceca045dab2aff0115813592e97756c50

See more details on using hashes here.

File details

Details for the file vnpy_tushare-1.4.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vnpy_tushare-1.4.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f767dd50469c27cfc64f11fbc57b3436bb16538bee4863f91e48fc962a9f3d0
MD5 9e81dae2a54290ed9f2268ceef6c3fd6
BLAKE2b-256 4c4128f4f999ed7c8476ca76cf462abf7bf3109817d1dcff53c054fc11aa1930

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page