No project description provided
Project description
量化的时序函数包
投研团队自用包,出问题了请提 Issue、修复后请关闭 Issue。
功能列表
初始化
td_init_run(configs=None)
:初始化包td_db_connect()
:获取一个数据库连接
A 股
股票
获取所有指数(股票市场、当前有效的): get_all_index- 获取所有股票(默认:当前有效的): td_all_security
获取标的的最新信息(股票市场、不包含未来): get_data获取龙虎榜股票列表: get_dragon_tiger_list
Code/Style Linter
我们使用 Ruff 作为代码检查器,请在提交前使用以下命令,确保 PR 的顺利进行:
ruff check .
ruff format .
打包
- 更新 pyproject.toml 文件
- 执行
./build.sh
- 输入 API token
旧的打包方式:
- 更新 pyproject.toml 文件
- 执行
python -m build
- 执行
python -m twine upload dist/*
- 对输入框,输入账号:
__token__
并回车 - 最后输入 API token 即可
测试
需要运行自动化测试?
poetry run pytest
如果你希望使用 Poetry 提供的虚拟机制,也需要本地提示。试试这个:
- 执行
python -m build
- 本地安装包
pip install dist [package-...-any.whl]
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4186324ad6f4058c6f8e302128af7f65326e2ea6f87aa5b4ea48b9fd609d87b9 |
|
MD5 | fc870a1217875df04f9da92400cc65a6 |
|
BLAKE2b-256 | 9e4195f33227d0fa0c72102e9e3a8f1a6faddeeea6de3f69e0b824b5dafbb4fe |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 680fdcfc3fa4084a755b52eaef3ba83bf4884e348bb9ce0959bae9acc02f910e |
|
MD5 | 0636277e78b6ee18395dc76a652e615f |
|
BLAKE2b-256 | e3e10f90130465a0b60e9900a4fb253354772c148dc8a6d59f0a85672c2487d0 |