Skip to main content

VeighNa框架的AKShare数据服务接口

说明

基于akshare开发,支持以下中国金融市场的K线数据:

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

数据使用事项

  1. 主要支持A股数据,不支持期货数据
  2. 支持基金数据,但需要采用安装修改版akshare
  3. 支持日线级别数据,tick级别不支持
  4. akshare数据源采用证券网站抓取,影响可能存在较慢的问题。

安装

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

直接使用pip命令:

pip install vnpy_akshare_adapter

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

pip install .

使用

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

名称 含义 必填 举例
datafeed.name 名称 是 akshare
datafeed.username 用户名 否 token
datafeed.password 密码 否 token

Metadata

Release files for vnpy-akshare-adapter 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vnpy-akshare-adapter 1.0.0
File Size Uploaded
vnpy_akshare_adapter-1.0.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vnpy-akshare-adapter 1.0.0
File Interpreter ABI Platform
vnpy_akshare_adapter-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / vnpy_akshare_adapter-1.0.0.tar.gz

Download URL vnpy_akshare_adapter-1.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0d711a709ade59061fc5ecfa33f3debccc09f71b9e658d70552d6f1c8befb8d5
BLAKE2b-256 checksum
How to use checksums
d58a407c878bab1101dba6fc9f6ab1db5059764f4bafceb1287a01925e70e73a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / vnpy_akshare_adapter-1.0.0-py3-none-any.whl

Download URL vnpy_akshare_adapter-1.0.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff55f352638e2ccd0b9a55b7b980a538041ab4fe30c8c53df89de456413ea69f
BLAKE2b-256 checksum
How to use checksums
dff63bbf345f0fb699a3063e7c2c6733ef904da2454b57c6862dcc7414f3caef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page