Skip to main content

No project description provided

Project description

量化的时序函数包

投研团队自用包,出问题了请提 Issue、修复后请关闭 Issue。

功能列表

初始化

  • td_init_run(configs=None):初始化包
  • td_db_connect():获取一个数据库连接

A 股

股票

  1. 获取所有指数(股票市场、当前有效的): get_all_index
  2. 获取所有股票(默认:当前有效的): td_all_security
  3. 获取标的的最新信息(股票市场、不包含未来): get_data
  4. 获取龙虎榜股票列表: get_dragon_tiger_list

Code/Style Linter

我们使用 Ruff 作为代码检查器,请在提交前使用以下命令,确保 PR 的顺利进行:

  • ruff check .
  • ruff format .

打包

  1. 更新 pyproject.toml 文件
  2. 执行 ./build.sh
  3. 输入 API token

旧的打包方式:

  1. 更新 pyproject.toml 文件
  2. 执行 python -m build
  3. 执行 python -m twine upload dist/*
  4. 对输入框,输入账号: __token__ 并回车
  5. 最后输入 API token 即可

测试

需要运行自动化测试?

  • poetry run pytest

如果你希望使用 Poetry 提供的虚拟机制,也需要本地提示。试试这个:

  1. 执行 python -m build
  2. 本地安装包 pip install dist [package-...-any.whl]

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

q_searcher-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

q_searcher-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file q_searcher-0.0.3.tar.gz.

File metadata

  • Download URL: q_searcher-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.12 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for q_searcher-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4186324ad6f4058c6f8e302128af7f65326e2ea6f87aa5b4ea48b9fd609d87b9
MD5 fc870a1217875df04f9da92400cc65a6
BLAKE2b-256 9e4195f33227d0fa0c72102e9e3a8f1a6faddeeea6de3f69e0b824b5dafbb4fe

See more details on using hashes here.

File details

Details for the file q_searcher-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: q_searcher-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.12 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for q_searcher-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 680fdcfc3fa4084a755b52eaef3ba83bf4884e348bb9ce0959bae9acc02f910e
MD5 0636277e78b6ee18395dc76a652e615f
BLAKE2b-256 e3e10f90130465a0b60e9900a4fb253354772c148dc8a6d59f0a85672c2487d0

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