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.2.tar.gz (24.4 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.2-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file tickhub-0.3.2.tar.gz.

File metadata

  • Download URL: tickhub-0.3.2.tar.gz
  • Upload date:
  • Size: 24.4 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.2.tar.gz
Algorithm Hash digest
SHA256 20c257b06b22ad55a55f7d4a038b5df68375f94efb3dc13457931ac2c94dba97
MD5 45b539d21a9f560df256514050db9c41
BLAKE2b-256 4a56ad444f28f5c01eaaadc1b3b280eebb2829a228c01085f292ef2ae8df2568

See more details on using hashes here.

File details

Details for the file tickhub-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: tickhub-0.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05a1491bb376506b2facd45197a83300cd579545eee518537fe0b4ac95e4d187
MD5 a06c385f559a1357140a94012a2e91da
BLAKE2b-256 71630ef44c5ac3ed00897b1246a7cdab935e8856193b6d50aa7e970fb0c43d60

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