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.4.tar.gz
(7.5 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.4.tar.gz.
File metadata
- Download URL: qb_data_client-0.9.4.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edbeefaf188cdd7bfdfbb8d28c70c347494938a9808d7b7969edc032734e8b58
|
|
| MD5 |
29dcb7739ac61c94fd51f0344596a0f9
|
|
| BLAKE2b-256 |
b76dd1af2c0d263b77976d286b0c5701fa1d3cd9f7229e9ef4754130e32f9673
|
File details
Details for the file qb_data_client-0.9.4-py3-none-any.whl.
File metadata
- Download URL: qb_data_client-0.9.4-py3-none-any.whl
- Upload date:
- Size: 7.9 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 |
7b5f6b3fd71b02e7ac58f80b55f254b48afdcf8747ee72b2f8c900001b0a1570
|
|
| MD5 |
695f3992ad5b44184c589f9a37cd02a4
|
|
| BLAKE2b-256 |
9d07b8db5153c530a77786e37ef55296bc5dfc0eabfdf1759dc6e6936ee0dad4
|