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.40-cp312-cp312-win_amd64.whl (140.0 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.40-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.40-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.40-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 125ab2b29367a32769cf941d35f9b93444e41c65647d46b04361be7b1464063b
MD5 c3ee73d8dfc6cd8795cd3ab7d96efa61
BLAKE2b-256 2fbdcf40af532d2d0202ea24543ba62d46d07d2c0dfd7d39cee5549a7f9700f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.40-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fbf16a6dd9ca4ba5b556e30c355e90e0daa00b73610f4eeac830858c4c532692
MD5 ab09d4a25e56887bac744064eff4b41e
BLAKE2b-256 2b86ac756b7de529ebf5a4c17392ca14defafdbf78a751d86ea301fa367f12a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.40-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f475e664355149a9fb5efc8c8721223b3a299bd99e8207af092213f2e3ac4f7c
MD5 33e6446f69b690659ceaf1510a7c7906
BLAKE2b-256 559704d859f5bedd19831462a67e2b85eabb0a7e5edce56e432511d9acbddc29

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