Skip to main content

ashare-quant-data-sdk

A 股量化数据 HTTP 客户端。安装后 from ashare_quant_data_sdk import QuantClient,只依赖 pandas,不含拉取与 ClickHouse 业务代码。

pip install ashare-quant-data-sdk
from ashare_quant_data_sdk import QuantClient, cols

c = QuantClient("http://127.0.0.1:8000")
bars = c.kline(symbol="600519", start="20240801", end="20240805", adj="qfq")
snap = c.snapshot(trade_date="20240819", symbols=["600519", "000001"], adj="qfq")
df = c.fina(symbol="600519", start="20240101", end="20241231", fields=cols.fina.EPS_BASIC)

日期参数为 YYYYMMDD,区间两端包含。需先启动本仓库的 quant-data serve。直连 ClickHouse 请安装服务包 quant-data,使用 QuantClient.from_clickhouse()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ashare_quant_data_sdk-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

ashare_quant_data_sdk-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file ashare_quant_data_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: ashare_quant_data_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for ashare_quant_data_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 549deca493711e7c3c1bf185350cb6947cd3de0fe5ba29f8a9af9e30f88ebd23
MD5 337c27dc6de22a27fe9a9ec318030432
BLAKE2b-256 3dbe9d242eb2663dfad82310a67b52346d672a3a23e7c6d9bc4b5b6fac2e7bac

See more details on using hashes here.

File details

Details for the file ashare_quant_data_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ashare_quant_data_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0582e6aa6930adc166e8efb32a9fa67b96ab5648467b370c8a225d86a7ab18
MD5 58321db86e0d86bd911cd4657b38e6a7
BLAKE2b-256 0a75d9a3ce29e9275325596febcbc177bd347d841cc394676b9de3e601c8a98b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

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