Skip to main content

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


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.5.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qb_data_client-0.9.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file qb_data_client-0.9.5.tar.gz.

File metadata

  • Download URL: qb_data_client-0.9.5.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for qb_data_client-0.9.5.tar.gz
Algorithm Hash digest
SHA256 9514d295fc90ba83c2701f205447b2f85e0cd95bee0821f282763c5f213a31ef
MD5 c9f9d4f350149c3fdfd7d13327a3525c
BLAKE2b-256 eacfbbdb3e0af95b09cd08390434d0c8d8d457b88da7e6fa7f507b013dc6515d

See more details on using hashes here.

File details

Details for the file qb_data_client-0.9.5-py3-none-any.whl.

File metadata

  • Download URL: qb_data_client-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for qb_data_client-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 72c2ef992bbc88cc46974e316933758c6c9edd200bc2fa8f4c1a1d4607396e8d
MD5 f49f6769f85dbd014d2b89dcd266d754
BLAKE2b-256 daeac42e48e7666738e998ca8ff748243df20e33cb0bd631f7e4f597508db5e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page