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.20251224.25.tar.gz (116.8 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.20251224.25-cp312-cp312-win_amd64.whl (140.0 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.25-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.25.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251224.25.tar.gz
  • Upload date:
  • Size: 116.8 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.20251224.25.tar.gz
Algorithm Hash digest
SHA256 87671aafe403df58e8cb4d709e7bb7e991642dde8a27d8a5d290286fa44738fe
MD5 fd9d0a1cf15a9fa52ec63e1a5115f408
BLAKE2b-256 6a3b8f92b7d886e14e3a4bbfab3739b24623ec1f614bd4c61c3b34b16a9adb3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd9e22599cb4e7e1e12f49d65d1b4334b4348d7278af78a574831a9c04928f08
MD5 e89db8bcfa8850955c42c1f58d936d0e
BLAKE2b-256 5130b93f88ccbfbe70a22322460c7bd0b791dcfc9417ec712eb8d310e0d18b0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.25-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19eb29ffa67f5f2b60d705b6435a0ce8f176ee3fe186eab9241b3a3f62eebce5
MD5 f86bae372ae344deec8420c643eaf33a
BLAKE2b-256 ae22c25dd93b3fd88b69f2a608cb0e13632a4ba9ccb979a84a5743e920806c7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.25-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ed9aceff21695bca2870990fece64017386f13a6b3fe43fcf9cdef4b8e0fa76e
MD5 40680aeae5e35d360f6a969a87d7f4d4
BLAKE2b-256 9f328f29d2bf822093e5f3460bb4e86185de42b2616216a52564b2f6f23d7ff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.25-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 41ea8e5d650d4d4cfe7f5df0aade06510b233c416d0a932793278d30c1415505
MD5 cd6f64ff89faee74448e51fe1051bd19
BLAKE2b-256 7b2fac2c8808049bfa8334317acb5cbfcdf2af66f64b589f54bb74cfda4eabed

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