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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.39-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.39.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251224.39.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.39.tar.gz
Algorithm Hash digest
SHA256 62d008f833e657021c5971550714ec031923701de0ca6423ff5b305e9ec3913e
MD5 03e273b89844583d8d3df4903efe82e5
BLAKE2b-256 a3907f2a08cea33c80589dc9e313f5cadc8b3a598deb18812c9ef008c8a4120b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.39-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f79ceab6b4692577051d6157604b7bd48744f99909290c8e770f1f8274ddb0cd
MD5 bd251afadcf081856b32e606dc6bf0dc
BLAKE2b-256 eb3263391194037a8daca19028a80c93666160ba5d3370e7d170562478892d0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.39-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c87fcad2904942e08bf3084a7aae0bb5c63bc08423c39cfde8d7a63a1adaf947
MD5 24528da24f3ebc7d7c3b915f9e2e09c8
BLAKE2b-256 678bccd725ae7d19f88fa3a9a065205747a9fd738a7b4dca43f3c5648d53fc46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.39-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 71713d8f9352e1faae4d9ee072a56259fa23200447b9f0ee3d94d26fc1347e4b
MD5 676c093cc0d48bc2312e078d24f5394a
BLAKE2b-256 c87c64cad53d75789ef85681da0a0cfae2a71c8a05fed22e7877a217be5eee66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.39-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b1ba74e9a7827e3a8f474bc189803850dff80e40a2215f18ab63f4755ea79fa5
MD5 67623a7402894f5adcb01a29eef54c9f
BLAKE2b-256 e6ea822d1b25612601afcf9502fef2dba26af445a36edeaee2dd6e3c6ed660fc

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