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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251223.35-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.35.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251223.35.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.35.tar.gz
Algorithm Hash digest
SHA256 c62a3373fc6a4ad489cf74f37aac96ac13202492fb51a9c4332ab188e1d0eb76
MD5 94cd5d3e3f2f4935d669890571d676fe
BLAKE2b-256 b9fee705773016808748d91dbcd7290bd4b046ced9a7e2a145d8bdef0581d282

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.35-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4986e296e01c6a5ae0753a80a66bf04f5a9d23866e8a9a1ab00b20fa55253625
MD5 4671fb9cc91a4e3fbf54e3779ce1f42b
BLAKE2b-256 27911232185631cd6616b322e6f6e610e6ab793a16162045e9db047bf7843924

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.35-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 719e53d4fcf7dff9931347e757abcefc94ab3adf81c626e8945764a50701fc21
MD5 5af447789924511b2c649b6d703b3496
BLAKE2b-256 b888f8d3c1b50a68c05cf941c9387578ae704a054e1383bbbfff987f41abe8d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.35-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 eee5c036e9c781e0f5180e97a2fcccec1dae10d31140814eb2693a2932080365
MD5 af585a3dc9d7c9763d70ca1fde669cf6
BLAKE2b-256 a1bf225beed07138b27b8cc78fa66301ce0f1d17795f4e92d93122ffa6dc10c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.35-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4b337b5403fe73efec5228aa2df41195fd40ab6ea34197fa9a6b7d9ddf949418
MD5 42a4bf16f13aa62e41aa90b384cbb66c
BLAKE2b-256 45832f8248551d4e2e493f1a55f9eafea75fff864db2254ec584d54970221a94

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