A Python SDK for real-time stock and futures market data
Project description
TickHub Python SDK
A Python SDK for financial market data.
How to use
import tickhub
# Initialize client
pro = tickhub.pro("your-api-token")
# Get daily data
df = pro.get_daily(
ts_code='000001.SZ',
start_date='20240101',
end_date='20240301'
)
# Get realtime data
df = pro.rt_k(ts_code='000001.SZ')
Development
See docs/dev/DEVELOPMENT.md for development guide.
Documentation
- DESIGN.md - Design document
- docs/dev/API_GUIDE.md - API development guide
License
MIT
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
tickhub-0.2.0.tar.gz
(11.6 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 tickhub-0.2.0.tar.gz.
File metadata
- Download URL: tickhub-0.2.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18d3d3dcc1cdda0277b9cee3636cdc4ed17bb22697b88d7a7b9f52074cc0203e
|
|
| MD5 |
e0de9db0f88b51338169267b1b21ba6f
|
|
| BLAKE2b-256 |
1851833114a7d178f92bd75a03d9e74f484aac8065749660d9e99b5617660a76
|
File details
Details for the file tickhub-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tickhub-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34a4b7ad26524ac52b3a32f53fe33e6609c15a0fdab21221065e1be5b48c48c6
|
|
| MD5 |
79355a3c8f195b9628b1a576f6dd0478
|
|
| BLAKE2b-256 |
bb23ec0cba0e629d942eb61aeaf1f6dcdce975f67b97ebc42870bf2da8481688
|