A Python SDK for real-time stock and futures market data
Project description
TickHub Python SDK
A Python SDK for financial market data.
Installation
pip install tickhub
How to use
import tickhub
# Initialize client
pro = tickhub.pro("your-api-token")
# Get daily data
df = pro.daily(
ts_code='000001.SZ',
start_date='20240101',
end_date='20240131'
)
# Get realtime data
df = pro.rt_k(ts_code='000001.SZ')
Documentation
- API Docs - API reference documentation
Development
- DEVELOPMENT.md - Development environment setup
- DESIGN.md - Design document
- API_GUIDE.md - API development guide
- PYPI_RELEASE.md - PyPI release 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.3.1.tar.gz
(24.3 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
tickhub-0.3.1-py3-none-any.whl
(20.1 kB
view details)
File details
Details for the file tickhub-0.3.1.tar.gz.
File metadata
- Download URL: tickhub-0.3.1.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f98127d7be23085a90af579da71c058418577cdd73779d453f746a753af5e4d8
|
|
| MD5 |
413821585ab71a6adbe3bf95e138e0c3
|
|
| BLAKE2b-256 |
68eb305362613a0d2f17fef78e7f3e667fadf6c0189edb2923707b04cdc009b4
|
File details
Details for the file tickhub-0.3.1-py3-none-any.whl.
File metadata
- Download URL: tickhub-0.3.1-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
377afc46051b4f15128abcb155b6dc1577aa4bab705ac860f4d100c2534aa6b2
|
|
| MD5 |
8bae7d6dcbe91f637be66bfb3f59ba45
|
|
| BLAKE2b-256 |
30e6a2ca00783eae2cc720313006a1f9dfdfcc555500df54ab9be141d568993c
|