cyberquant
数据共享 API 服务平台的命令行工具。
安装
# 推荐使用 pipx(隔离环境)
pipx install cyberquant
# 或使用 pip
pip install cyberquant
快速开始
-
首次配置
cyberquant config set
交互式输入 API 端点地址和 API Key。
-
查询数据
cyberquant query --tradeDate 2026-06-01 --stockCode 920992 --pageSize 10
主要命令
config — 配置管理
cyberquant config set # 设置端点和 API Key
cyberquant config list # 查看当前配置
cyberquant config status # 查询账户状态
query — 数据查询
# JSON 输出
cyberquant query a-daily-bfq --tradeDate 2026-06-01 --stockCode 920992 --pageSize 10
# JSON 输出文件,日期支持范围查询(同一参数多次传递)
cyberquant query a-rt-min --tradeTime 2026-05-20 --tradeTime 2026-05-21 --stockCode sz301125 --period 5 --output ~/Downloads/rt-min-query.json
# CSV 格式输出到文件, --all(自动翻页)
cyberquant query a-rt-min --tradeTime 2026-05-20 --tradeTime 2026-05-21 --stockCode sz301125 --period 5 --all --format csv --output ~/Downloads/rt-min-query.csv
stream — 实时流
# 实时行情(JSON 输出)
cyberquant stream a-rt-min --tradeTime 2026-05-20 --tradeTime 2026-05-21 --stockCode sz301125 --period 5
# 输出到 CSV 文件,日期支持范围查询(同一参数多次传递)
cyberquant stream a-rt-min --tradeTime 2026-05-20 --tradeTime 2026-05-21 --stockCode sz301125 --period 5 --format csv --output ~/Downloads/rt-min-stream.csv
技术要求
- Python >= 3.10
- 依赖:Typer、Rich、httpx
许可证
[待添加]
Metadata
Release files for cyberquant 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cyberquant-1.0.2.tar.gz | 12.3 kB | Without provenance | Details for cyberquant-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cyberquant-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for cyberquant-1.0.2-py3-none-any.whl |
Total release size: 29.4 kB
Release files / cyberquant-1.0.2.tar.gz
| Download URL | cyberquant-1.0.2.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37afe70015350339814da8c9fcc333c060e584fb4dfb19a9f23a7eaeaf494a31
|
|
BLAKE2b-256 checksum How to use checksums |
f12568866d506d233980fc18dbefea0ceeb96908022e36378b8f313b2c213151
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / cyberquant-1.0.2-py3-none-any.whl
| Download URL | cyberquant-1.0.2-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c77939311050f1feee9ed03a4ff6d0b6d0627ce540fff0d8e6ea0fabe775b5bb
|
|
BLAKE2b-256 checksum How to use checksums |
bf1e404f7cd7caf84da061781c38638cce42b7b3c017942379b249b35bb3da99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for cyberquant 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.