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.48.tar.gz (125.3 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.48-cp312-cp312-win_amd64.whl (147.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.48-cp310-cp310-macosx_13_0_arm64.whl (145.8 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.48-cp310-cp310-macosx_10_9_x86_64.whl (145.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251224.48.tar.gz
  • Upload date:
  • Size: 125.3 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.48.tar.gz
Algorithm Hash digest
SHA256 b711a227641485358a9f6ecae66318f7741009d8d1213dbaa9348331e67f2722
MD5 b9aff18ad3a0e8c25904fa29339037af
BLAKE2b-256 3f7594561ce9a0754fac4a0e450764f4aded8b3aca2a388b8e0b3a74fc656990

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.48-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6ab01c13b63272ed0fb370306bfba1a3c2646b9ae56cfcf7270e302294891ee3
MD5 5e9a2d95ec9a4e3adaa200cc1bd33e02
BLAKE2b-256 5cf85169eb8831331811ce9ca335630e3d6a769a328c5a75f62351cf22491eb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.48-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4a1fba575761a0ef4640a07fea9dbadbe0a6e5615fbea38051eac9f9f4d73a02
MD5 099b83b9290bf2d6525cf5b03aa25386
BLAKE2b-256 51fad6555ead1b36c65520ed4f56248a3b629f2661fff574379cb8f0f5601447

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.48-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4346f662dd5d27725da476b723f1538482a08abb0b945150781f6c048fad3bf1
MD5 b258a07b4166aa3c6e932d164aca8d5d
BLAKE2b-256 f2ef05b5bb7469c0a31b6593edf6185d14e754403fc81a5a881250e26439e691

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.48-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8b97de72b35d78664f739386dbfba9993797b8d9a24a3fa2adc8b78f2bb7bbdc
MD5 b2d4a197d276a5167de3cfe99caf24af
BLAKE2b-256 b664d796d85f40bfef49988ee27618065887d072443376d6fd03c172ff3c685a

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