Qb Data Client (Python)
这是一个用于调用QB DATA API 的 Python 客户端,统一将返回结果转换为 pandas.DataFrame。完整 API 说明以贵司随项目分发的文档为准(例如仓库中的 docs/api-docs.md;PyPI 源码包未必包含该文件)。
环境准备
在 python-client 目录下安装依赖:
pip install qb-data-client
使用方式
from qb_data_client import QbDataClient
client = QbDataClient()
# 设置认证信息
client.set_access_key("your-access-key")
df = client.top10_low_cdc_yield_municipal_bond()
print(df.head())
contributor_id 说明
- 含义:交易所或经纪商缩写
- 多个经纪商:使用英文逗号(
,)分隔,例如:"UEDA,CFES"
枚举值:
| contributor_id | 名称 |
|---|---|
| UEDA | 上田八木 |
| TPSH | 国利货币 |
| CNEX | 国际货币 |
| CCTB | 中诚保捷思 |
| TJXT | 天津信唐 |
| PATR | 平安利顺 |
| SSEC | 上海证券交易所 |
| SZEC | 深证证券交易所 |
| CFES | 外汇交易中心 |
Metadata
Release files for qb-data-client 0.9.7
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 |
|---|---|---|---|---|
| qb_data_client-0.9.7.tar.gz | 8.1 kB | Without provenance | Details for qb_data_client-0.9.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qb_data_client-0.9.7-py3-none-any.whl | Python 3 | none | any | Details for qb_data_client-0.9.7-py3-none-any.whl |
Total release size: 16.7 kB
Release files / qb_data_client-0.9.7.tar.gz
| Download URL | qb_data_client-0.9.7.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d004de612dd645ee532a178765b262a2bdee3e9c8837ed9af43980115267a255
|
|
BLAKE2b-256 checksum How to use checksums |
9a0aef329b51c0880450dfb1687dd9facf292d19452824e76304272ba92cb890
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / qb_data_client-0.9.7-py3-none-any.whl
| Download URL | qb_data_client-0.9.7-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
937ef52eac893b87524a03fa9a2c944b55439509f3fe243992adf91c03f86a7c
|
|
BLAKE2b-256 checksum How to use checksums |
4c0972b5bff524d9193e0455c13890cf70fce5cfc24ad04f271cde3b66b6dce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for qb-data-client 0.9.7
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.