Skip to main content

Authenticated client + CLI for KC Trading OHLC API (pandas/polars). Optional HMAC signing.

Project description

kc-ohlc (v0.2.1)

Changes:

  • Embedded default base URL: https://ohlc.kctradings.com (no need to pass base_url).
  • Per-call library override: get_bars(..., library="pd") / get_symbols(..., library="pd"), default is pandas.

Quickstart

from kc_ohlc import KCClient

c = KCClient(api_key="YOUR_KEY")       # base_url defaults internally
df = c.get_bars("EURUSD", "h1", "2024-01-01", "2025-01-01")            # pandas by default
df_pl = c.get_bars("EURUSD", "h1", "2024-01-01", "2025-01-01", library="pl")  # per-call polars

CLI still works with env vars; default base URL embedded.

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

kc_ohlc-0.2.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

kc_ohlc-0.2.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file kc_ohlc-0.2.1.tar.gz.

File metadata

  • Download URL: kc_ohlc-0.2.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for kc_ohlc-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a03c3a44c1ee272d4a8f5589dbdb3bc9fdc6795c5802ccebb5168c82d79e1987
MD5 fc590297646a71e9caafc4121a4084c0
BLAKE2b-256 5a4f8a45c25ecadc7298a5f22d3210b43107cee90666649cd79d90ae6df407a6

See more details on using hashes here.

File details

Details for the file kc_ohlc-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: kc_ohlc-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for kc_ohlc-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42c7b02bffafa712a1c7e1978f4152e3b91df6ad3575b93991052c4074a21a76
MD5 5291a1e3669d4fefe15f924440ae3062
BLAKE2b-256 547ca6d6d649166be55715170b659dfc62b4b925aee15008dc63810cd766a295

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