sec-core
sec-core 是证券行情消息协议核心包,提供 subject 构造/解析、schema 常量、payload 校验、Nats-Msg-Id 生成和 MessagePack 编解码。
安装:
uv add sec-core
pip install sec-core
示例:
from sec_core.market_data.subjects import format_tick_subject
print(format_tick_subject("000001.SZ"))
输出:
tick.v2.sz.000001
第一版支持:
tick.v2.{market}.{code}backfill.tick.v2.{market}.{code}kl.v1.1m.{market}.{code}backfill.kl.v1.1m.{market}.{code}
本包不依赖 xtquant、nats-py 或 pyarrow。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sec_core-0.2.0.tar.gz
(29.1 kB
view details)
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 sec_core-0.2.0.tar.gz.
File metadata
- Download URL: sec_core-0.2.0.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d54ce4f4fb43f27f33be6e916280e35217a67b4027464e8baafd6dde364c3fd7
|
|
| MD5 |
14154b8393326c3126d3b2d7d627d534
|
|
| BLAKE2b-256 |
f6da6078af9c61b35bcfa615fdfc9f1f0c67b35de281ea49223e6771ee22ee16
|
File details
Details for the file sec_core-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sec_core-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8f787e5ecd2d01dd594dc80f3fe89a38f21bed207a62d7cb8f08186afe0e6c7
|
|
| MD5 |
5ffda12a35a36ab5debff0b3cb99d543
|
|
| BLAKE2b-256 |
b1f51295c7faab28225d90b000e4de7e02d01f867e4699b99ebb8c18304cc9e8
|