Skip to main content

A Python-based stock broker module

Project description

A simple python library to connect to various brokers using standard user credentials, fetch the instruments (trading symbols), indices and their ticks during as well as off market hours.

High-Performance In-Memory Candle Store

PKBrokers includes a high-performance, in-memory OHLCV candle storage system that provides instant access to real-time data across all supported timeframes.

Quick Start

from pkbrokers.kite import get_candle_store, HighPerformanceDataProvider

# Get the candle store singleton
store = get_candle_store()

# Or use the high-level data provider
provider = HighPerformanceDataProvider()

# Get 5-minute candles for any stock
df = provider.get_stock_data("RELIANCE", interval="5m", count=50)

# Get current day's OHLCV
ohlcv = provider.get_current_ohlcv("TCS")

Supported Timeframes

Interval Description
1m, 2m, 3m, 4m, 5m Short-term
10m, 15m, 30m Intraday
60m Hourly
day Daily

Features

  • O(1) Access: Instant access to any candle
  • No Rate Limits: Unlike Yahoo Finance
  • Real-time: Live data during market hours
  • Auto-persistence: Saves to disk every 5 minutes
  • Memory Efficient: ~100MB for 2000 instruments

📖 Full Documentation

codecov

Title

pkbrokers (# 1 Stock screener/scanner for NSE India)

MADE-IN-INDIA GitHub release (latest by date) Downloads latest download Docker Pulls
Platforms Windows Linux(x64) Linux(arm64) Mac OS(x64) Mac OS(arm64) Docker Status
Package / Docs Documentation OpenSSF Best Practices PyPI is wheel github license
Tests/Code-Quality CodeFactor codecov After Market

Star History Chart

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkbrokers-0.1.20251223.21.tar.gz (110.5 kB view details)

Uploaded Source

Built Distributions

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

pkbrokers-0.1.20251223.21-cp312-cp312-win_amd64.whl (134.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251223.21-cp310-cp310-macosx_13_0_arm64.whl (133.3 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251223.21-cp310-cp310-macosx_10_9_x86_64.whl (133.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file pkbrokers-0.1.20251223.21.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251223.21.tar.gz
  • Upload date:
  • Size: 110.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pkbrokers-0.1.20251223.21.tar.gz
Algorithm Hash digest
SHA256 331480fcfdff99f78db164f9956da4761cce1cfce6592ddd4cc9547c41e91fc6
MD5 cb4763403db194b336d24f9aff65af59
BLAKE2b-256 96dd4c93c378520795f7aebe0f885f4260de55e4a16855faa86ac34691d6cbbb

See more details on using hashes here.

File details

Details for the file pkbrokers-0.1.20251223.21-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ddb1527ac8c1fc1b052bedbf7395da01a2b8b8529a206629491c910443bfa8a4
MD5 70b171e2045ba8a13a61138f946eaff0
BLAKE2b-256 d13f70aa8181366c58dd5aea2f61c8b5c91cb678344687c3406f626cc07cf00f

See more details on using hashes here.

File details

Details for the file pkbrokers-0.1.20251223.21-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.21-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 612502146cfd6c6449b27cf977fbcf444eaec775b0ef6686721659adc0c3e6e5
MD5 a20904b35a0fd047cd586c78518e99b4
BLAKE2b-256 53d8f73b1440a830f47af867a97cf27575859a2298ab176fbde469e7eb00f207

See more details on using hashes here.

File details

Details for the file pkbrokers-0.1.20251223.21-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.21-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b94754d7480b4b68e155d77f74a784c84c1b19c69ab97dcaae54d33bb953c34e
MD5 4cc6081fba8fd2fabf2feba738e2a829
BLAKE2b-256 b8af58084a33c20bf1e05a62e45d88183a4e54a72acdb68dbdfdf9e61dcad961

See more details on using hashes here.

File details

Details for the file pkbrokers-0.1.20251223.21-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.21-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 52e20d01a8655e841de724ceef4459a1851e6fd3a269f9271eb17f56861bfa63
MD5 0d38d3aa3d6ff04b260cf713640551af
BLAKE2b-256 a4334b7209f626d6995b62a7eeebae530db588ac8d6bfceac35ceee32b7eef0d

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