finclaw-data-sdk
A 股量化数据 HTTP 客户端。安装后 from finclaw_data_sdk import QuantClient,只依赖 pandas,不含拉取与 ClickHouse 业务代码。
pip install finclaw-data-sdk
from finclaw_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)
idx = c.index_list()
idx_bars = c.index_kline(index="000300", start="20240801", end="20240805", fields=cols.index_kline.CLOSE)
cons = c.index_constituents(index="000300", fields=cols.index_constituents.SYMBOL)
日期参数为 YYYYMMDD,区间两端包含。需先启动本仓库的 finclaw-data serve。直连 ClickHouse 请安装服务包 finclaw-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
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 finclaw_data_sdk-0.1.3.tar.gz.
File metadata
- Download URL: finclaw_data_sdk-0.1.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31d5a801595d4cfafea2454317272332a5ddeaf71025a2dd7f53170f5f710c71
|
|
| MD5 |
5b7edfa9c857d71525366c94f460d83a
|
|
| BLAKE2b-256 |
9a22a4a0ce556832db5cf65fcf7529c395a222e3c477dd39a36c2c4e85c834d2
|
File details
Details for the file finclaw_data_sdk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: finclaw_data_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c98241f216e7571577aa1c268870a66f6960ecee3da3da5a414b53c216b8fc7
|
|
| MD5 |
238548d5050944cb989d97b506624f9a
|
|
| BLAKE2b-256 |
69342923d83a87f24e9c0b2c9adc192eb36d9e36bdce860bdf1c11eb5cba328e
|