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.7.tar.gz (8.1 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.7-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qb_data_client-0.9.7.tar.gz
Algorithm Hash digest
SHA256 d004de612dd645ee532a178765b262a2bdee3e9c8837ed9af43980115267a255
MD5 5a59eb7b29251b64dbda2a4334d061ba
BLAKE2b-256 9a0aef329b51c0880450dfb1687dd9facf292d19452824e76304272ba92cb890

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for qb_data_client-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 937ef52eac893b87524a03fa9a2c944b55439509f3fe243992adf91c03f86a7c
MD5 0158bfec77ccd27e059b99915c549df8
BLAKE2b-256 4c0972b5bff524d9193e0455c13890cf70fce5cfc24ad04f271cde3b66b6dce1

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