dayquant
Token 鉴权的行情 / 财务数据 Python 客户端:本地缺失时自动从服务器增量拉取 parquet,再用 DuckDB 查询,返回 pandas DataFrame。
安装
pip install dayquant
快速开始
import dayquant as dq
cli = dq.create_client("YOUR_TOKEN", "/path/to/data_root")
df = cli.fetch_daily(
stock_code="000001.SZ",
start_date="20240101",
end_date="20240131",
)
print(df.head())
本地没有对应数据时,会自动按查询范围从服务器下载后再返回结果。
环境变量(可选)
| 变量 | 说明 |
|---|---|
DAYQUANT_SERVER |
下载服务地址 |
DAYQUANT_DATA_ROOT |
默认数据根目录(仍建议在 create_client 中显式传入) |
DAYQUANT_MAX_ROWS |
单次查询最大行数,默认 500000 |
要求
- Python >= 3.10
- 依赖:duckdb、pandas、requests、tqdm、python-dotenv
更完整的接口说明见包内文档,或安装后查看源码中的 README。
作者与联系
| 项目 | 信息 |
|---|---|
| 作者 | dayquant |
| 邮箱 | info@dayquant.com |
| 官网 | https://www.dayquant.com |
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dayquant-0.3.0.tar.gz
(18.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dayquant-0.3.0-py3-none-any.whl
(21.5 kB
view details)
File details
Details for the file dayquant-0.3.0.tar.gz.
File metadata
- Download URL: dayquant-0.3.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae49687380c5b4b438c05b0ffbc8acef477b0ce774281e6721043415252bd783
|
|
| MD5 |
94c29925db98d1ba1fa5b2fa5a3ceda3
|
|
| BLAKE2b-256 |
1678934767ff73d5764cd3bfd4dc70fb877fc61d4996946ea2362769c60da595
|
File details
Details for the file dayquant-0.3.0-py3-none-any.whl.
File metadata
- Download URL: dayquant-0.3.0-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd367b3e7daa83222b8194a18231765361990f7516b50cd41c363e5a8f9157f5
|
|
| MD5 |
06e8041d668ca48ffc40ac610e5c5cab
|
|
| BLAKE2b-256 |
53845bc28ab3f401a425d41628f9a49229c4cf831b3441b16d41860e6c9001a9
|