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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.42-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.42.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251224.42.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.42.tar.gz
Algorithm Hash digest
SHA256 f1d48710426f27b426e6840ab967704a200e7f54a87e841385d9f5b096541af1
MD5 d647ab7f688d61163f382b369e5b2dd3
BLAKE2b-256 4b19e1d702da81139efc1aa2bf0719c2e9888bb84c38aeab78b1c601cdfa45e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.42-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 127604e3716ded5a73a1d6a2155ad19c24f32cca16d465bc0251fbb4c5370de8
MD5 24842747d62470e2e0cbe3a2f2fd5ea9
BLAKE2b-256 00c821d18b45b91438f7e033409835d9f841bcdbacc8b2ecc0d1ab8ea055ae41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.42-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ec66ff26cd932d51c1f4db004906f0d3fb4a6ff07978f1e2f4f31bfde05f06ac
MD5 1cbe7b671904441ab48e6a0e23f1d10f
BLAKE2b-256 86cc9740f10278d14eff699ecc6c9e9fee061558cb1fd4602db82d29335744fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.42-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6534fba224c55cee36949a2e67f150bef0dded5a3bf7038d7e0707ec88eed080
MD5 d085f843a300abea0139027f4ea8df39
BLAKE2b-256 1004599a4ded5fa58d569b304eb8b8d308a75c9bf51b3f9a30fb46524800f74a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.42-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6f8e19b1aab5ec209cb54c83de3e42bab776df2163499c925ab7526bf8ad3091
MD5 a6dc5a4e3bcd34b616e307bfc9073463
BLAKE2b-256 0f9d31e4109df534ba039a3d74bab48dba09bba00da633ae54760951dff09b64

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