Skip to main content

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

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)

Uploaded Source

Built Distribution

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

tickhub-0.3.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

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

Hashes for tickhub-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f98127d7be23085a90af579da71c058418577cdd73779d453f746a753af5e4d8
MD5 413821585ab71a6adbe3bf95e138e0c3
BLAKE2b-256 68eb305362613a0d2f17fef78e7f3e667fadf6c0189edb2923707b04cdc009b4

See more details on using hashes here.

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

Hashes for tickhub-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 377afc46051b4f15128abcb155b6dc1577aa4bab705ac860f4d100c2534aa6b2
MD5 8bae7d6dcbe91f637be66bfb3f59ba45
BLAKE2b-256 30e6a2ca00783eae2cc720313006a1f9dfdfcc555500df54ab9be141d568993c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page