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.44.tar.gz (118.4 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.44-cp312-cp312-win_amd64.whl (141.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.44-cp310-cp310-macosx_13_0_arm64.whl (139.8 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.44-cp310-cp310-macosx_10_9_x86_64.whl (139.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file pkbrokers-0.1.20251224.44.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251224.44.tar.gz
  • Upload date:
  • Size: 118.4 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.44.tar.gz
Algorithm Hash digest
SHA256 1bdc11b8a88b2612ef5ed49b98948a93e5572c4c8319ce28b216c0f9a6113b62
MD5 8c2ded1744b582878db4079c49f1e958
BLAKE2b-256 d5f8ef2f56a23b9d7f0b312d3fca119859c01ab518435c47c207c8fad826ebf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.44-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 31b6b9e514fb79b3fa558f653f7988bc7acf2fd9b77a47a6a0d8cc3fad6b5748
MD5 2a8b453b044867e0c098b63b378ba96a
BLAKE2b-256 93fe32ab153090d9de5d1ffa6d7d3b125423b7b8863b86d9b8c36288edd6265a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.44-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c0bd8b42713d009824e9ea0a14f36cb58d7716161141eba331f2a4a880e6071f
MD5 b2959453bcd620e7a5083dbddc8f74b1
BLAKE2b-256 0f961499bd27810fcb9db8d7e0eaf86979850a8ad7e26a546c0bb0a626b22f09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.44-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 665cfd3c3a3f35db3c538f25b869159a998a51a6ad2b05fbe918677964be9d46
MD5 6ea065531e237e4b274dc03c3b385c78
BLAKE2b-256 14efd3a9330301ab0a1ac2237d7be6bc3d16cdc173f6f3af93eae13ff33dbc83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.44-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3924f7ba0cc6fae14d83ed215d954654d2894d028e5cc8f8395491a43dee4ea5
MD5 776b044c3c277d8783fbd8537e0ba98a
BLAKE2b-256 54c3988619cb214222aa68460ce8b1d5b8287d1de6cc0d47b3dc2890285ca9a3

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