Skip to main content

Tushare datafeed for vn.py quant trading framework.

Project description

vn.py框架的TuShare数据服务接口

说明

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

  • 期货:
    • CFFEX:中国金融期货交易所
    • SHFE:上海期货交易所
    • DCE:大连商品交易所
    • CZCE:郑州商品交易所
    • INE:上海国际能源交易中心
  • 股票:
    • SSE:上海证券交易所
    • SZSE:深圳证券交易所
  • 数字货币
    • BITMEX
    • BITSTAMP
    • OKEX
    • HUOBI
    • BITFINEX
    • BINANCE
    • BYBIT
    • COINBASE
    • DERIBIT

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

安装

安装需要基于2.6.0版本以上的VN Studio

直接使用pip命令:

pip install vnpy_tushare

或者下载解压后在cmd中运行:

python setup.py install

使用

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

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

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.2.64.1.tar.gz (4.9 kB view hashes)

Uploaded Source

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