Skip to main content

股票量化代码,包括通过qmt、同花顺问题和东财api等获取金融数据,以及处理量化这些数据。

查看库中的函数文档,请前往:https://wd.sanrenjz.com/yuhanbolh/about

代码是从多个渠道获取金融数据,在运行过程中提示没有什么模块,就用pip安装什么模块。 但迅投的xtdata和xttrade是不能通过pip安装的,需要把官网http://dict.thinktrader.net/nativeApi/download_xtquant.html 下载,然后放到python的...\Lib\site-packages路径中。

需要证券开户开QMT的可以联系我,微信:yuhanbo758

联系我们

主站:三人聚智-余汉波 - QMT量化、效率工具和财经知识的搬运工

程序小店(个人开发的所有程序,包括开源和不开源):首页 | 三人聚智-余汉波程序小店

文档站点(财经、代码和库文档等):余汉波 文档 | 财经、python与效率工具的知识搬运工

python 程序管理工具下载:sanrenjz - 三人聚智-余汉波

三码合一

余汉波打赏码

schedule akshare scipy yfinance pywencai baostock pytdx MetaTrader5 yuhanbolh

安装

pip install --upgrade yuhanbolh

自动发布到 PyPI

仓库的 .github/workflows/publish.yml 会在代码推送到 main 后自动完成以下操作:

  1. 查询 PyPI 上 yuhanbolh 的当前版本。
  2. 按每位逢十进一的规则生成下一版本,例如 0.6.8 → 0.6.9 → 0.7.0
  3. 构建并校验 wheel 和源码发行包。
  4. 自动提交 setup.py 中的新版本、创建 v版本号 标签并发布到 PyPI。

首次使用前,需要在 GitHub 仓库中完成一次配置:

  1. 打开 Settings → Secrets and variables → Actions,新增仓库 Secret:PYPI_API_TOKEN
  2. Secret 的值填写从 PyPI Account settings → API tokens 创建的 API Token(建议限定到 yuhanbolh 项目)。
  3. 打开 Settings → Actions → General → Workflow permissions,选择 Read and write permissions

自动生成的版本提交带有 [skip ci],不会递归触发下一次发布。

Download files

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

Source Distribution

yuhanbolh-0.6.2.tar.gz (63.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yuhanbolh-0.6.2-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

Details for the file yuhanbolh-0.6.2.tar.gz.

File metadata

  • Download URL: yuhanbolh-0.6.2.tar.gz
  • Upload date:
  • Size: 63.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for yuhanbolh-0.6.2.tar.gz
Algorithm Hash digest
SHA256 5b80edebfb66d325ee6871b12b43f27337c1af4d6ed6d609e5813fd9415f8c4a
MD5 392de26f4f2dcb3c6bcaae329b7e8df9
BLAKE2b-256 038a5de3cf694c75b03b08b305208e8a83b84702211798e7bf7f9ee35569c068

See more details on using hashes here.

File details

Details for the file yuhanbolh-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: yuhanbolh-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 67.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for yuhanbolh-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a7d5afcb526a54625d94ff4493bda0234b3a8466226d7a1f57af9297b1f6026c
MD5 3db1931b145e46c6466179ce41839045
BLAKE2b-256 8903b381076a190e9c92897f4ba080750d98a6d517832a4a556c4b6daeba12b7

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

This release

0.6.2 This release

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.9

2 files

0.3.7

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.2.1

2 files

0.1.1

2 files

0.1.0

2 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