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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pkbrokers-0.1.20251224.41-cp312-cp312-win_amd64.whl (140.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.41-cp310-cp310-macosx_13_0_arm64.whl (138.8 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.41-cp310-cp310-macosx_10_9_x86_64.whl (138.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.41-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7b4f76e8c04846deb996517afa0e277b721e967d30195ef2f024418e392f2478
MD5 208ab5b8b9ed068662c3ffab17e0edf1
BLAKE2b-256 5bf6f81d60a1f6bcf1fabd36a4b47b3f04600170fb21ecc97b185d2ddf75d622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.41-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 82c69e37127cf8b001a1106a682a89444387ee3bfe568efe21ce48bfa9299e8c
MD5 bfc72a2f65f551177c895fe3d6f795db
BLAKE2b-256 fe05997875d2dcbb8db776ffab69e58ea6ab50fa7512d7667a9a74fb36292b90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.41-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2214b719bdf67c7c8d1c1f4e17ea293438dbb400cc16a671d5061baf85c85059
MD5 6280739458dc201360a30c8b616ba6c0
BLAKE2b-256 7f7973f7529ca48d9977769bad8ac03b134b54da1f19e42bae7ef1e1ff0d1bc2

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