Skip to main content

jcdata

连接 JCDATA 数据服务,详情可查看官网:https://jicequant.com/

用户注册后即可在个人中心使用一定额度的数据服务。

安装

pip install jcdata

配置

访问令牌任选一种方式提供:

import jcdata

jcdata.login("你的访问令牌")

或设置环境变量后直接 jcdata.login():

# Linux / macOS
export JCDATA_TOKEN="你的访问令牌"

# Windows PowerShell
$env:JCDATA_TOKEN="你的访问令牌"

服务地址默认为 https://api.jicequant.com(可在安装包内 config.py 的 BASE_URL 修改)。

使用

import jcdata

jcdata.login("你的访问令牌")
print(jcdata.whoami())

bars = jcdata.get_market_data("600000.SH", "2025-01-01", "2025-01-31")
df = bars["600000.SH"]

主要接口

  • 行情:get_market_data
  • 基础信息:get_instrument、get_adj_factor
  • 期货/转债:get_settlement、get_future_contract
  • 股票因子:get_valuation、get_market_value、get_finance
  • 其它:get_trade_dates、get_all_sectors、get_stock_list_by_sector、get_option_bars、get_option_info

代码格式为 代码.交易所,如 600000.SH。

使用限制

  • 请求频率:短时请求过密时,库会自动等待后重试。
  • 每周数据量:有用量上限;用尽时抛出 CellQuotaExceededError。
  • 大批量代码:一次传入大量代码时,客户端会自动分批请求并合并结果。

Metadata

Release files for jcdata 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jcdata 0.1.6
File Size Uploaded Provenance Actions
jcdata-0.1.6.tar.gz 15.2 kB Without provenance Details for jcdata-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jcdata 0.1.6
File Interpreter ABI Platform Actions
jcdata-0.1.6-py3-none-any.whl Python 3 none any Details for jcdata-0.1.6-py3-none-any.whl

Total release size: 31.7 kB

Release files / jcdata-0.1.6.tar.gz

Download URL jcdata-0.1.6.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e49c5f493b35334cec19cd5b115a4ceb0039109c4c7399e113ac9e24b0e21a0
BLAKE2b-256 checksum
How to use checksums
df2a541508dbb961b9ebbddbe1af671cf44c99757f96731727579ec3e2f70763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / jcdata-0.1.6-py3-none-any.whl

Download URL jcdata-0.1.6-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44ac6ee38bd877795960b029b409ffaa7eb93495fbb38a005c000bc1b1baf37e
BLAKE2b-256 checksum
How to use checksums
1a83304831eccaa96fa4875a1f38097f884049cd6c35df0f78540284e12c3e6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for jcdata 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page