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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.27-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.27.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251224.27.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.27.tar.gz
Algorithm Hash digest
SHA256 85b765937d3fb72677b2c0334b8564e4e1e929409d8bc113cbe662ae706b73db
MD5 079c70b1317737039c6b23cea27b4728
BLAKE2b-256 c173f0c2e421c9fa960a89e1da26eee8eabcec321201863f76d702bafc883e81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.27-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6f2f51edd47d58a76594960b05334a1481cd0fb89dc02c0c4f1cf0281b431fad
MD5 d68dbd68ccee7c7d98f7fb0209ac8673
BLAKE2b-256 e3cf5cabbb35d8fe25f89a3bacc21e373ab9ef3d99853191465ce8122ce8eee3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.27-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f447ab8d91a9d4ffe72c721d6b372907edbb2835c256f8924977c7944344234b
MD5 3aebd850d5a7bc72379faed75bade620
BLAKE2b-256 787db73714f74dbc50a4e11b23c7d2abff12475b92d7c42a51e187c50daa3210

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.27-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b10adf0ca6a00c9d94156c21802f21b2a9d43fccc6eec115b7a9b73bafd760cd
MD5 f588ea520eb0f0d79f99e4a2bbe7b672
BLAKE2b-256 b5b8f9bfed055342245cf0aa25d5ca3577ae4a2901c6030d1b579b9742271b13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.27-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 14aa80bb4e384f46d889ab69dddc9699a01373466c6b64671202355af0c9daf0
MD5 6a25f08461d3a569f65d5949cbeb9a8b
BLAKE2b-256 c742060483af2264945e88b3cdd8fcfff0ecfe75c9ba4a2b18ccbab23b3e8f8d

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