Python client for QB DATA API; responses as pandas.DataFrame.
Project description
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 | 外汇交易中心 |
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
qb_data_client-0.9.6.tar.gz
(7.9 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
File details
Details for the file qb_data_client-0.9.6.tar.gz.
File metadata
- Download URL: qb_data_client-0.9.6.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6875f7e852e7111538d23a480aeedcd9614dff52691a5bc3c95b6cc22bcb2277
|
|
| MD5 |
d92e6e7ce89b18bb9bcc21c218bc26c5
|
|
| BLAKE2b-256 |
b1ff30405ec3873c0bd65640d3011aa23d1981a64d947b776a6358477e2c2723
|
File details
Details for the file qb_data_client-0.9.6-py3-none-any.whl.
File metadata
- Download URL: qb_data_client-0.9.6-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33681cc8193a276ab7f9ab8c9a2115894b1485fa69eeab7e92d1651cb05d1aef
|
|
| MD5 |
a3917964d6e7e12ff54cb082b9634bd2
|
|
| BLAKE2b-256 |
8b5ae09ad97878feb1a02f27cc3f19eda0c944b243341b8d02ec215dc423b03b
|