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.3.tar.gz
(5.7 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.3.tar.gz.
File metadata
- Download URL: qb_data_client-0.9.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3d5b4f016d885e865d094f7750ffcc6b8ffc0e4d875e80907c6f59586dceb91
|
|
| MD5 |
3aa7874e912ba3c006f2395ce58edbfb
|
|
| BLAKE2b-256 |
dfd9e8cab06a3f848c841a9f42418f400cef69b851f0b2a796adec1744e91616
|
File details
Details for the file qb_data_client-0.9.3-py3-none-any.whl.
File metadata
- Download URL: qb_data_client-0.9.3-py3-none-any.whl
- Upload date:
- Size: 6.1 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 |
917b23d3599645c5ee2d8cdc1cb173b101ebc1bfb79aae6a9828d9c4e9622cac
|
|
| MD5 |
19e0051b42a98cb02510635c65863353
|
|
| BLAKE2b-256 |
d483dc5c68e56ca6b561b8e263fd3dfb730b13df7851be15be3eb7d71dd418e0
|