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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.29-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.29.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251224.29.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.29.tar.gz
Algorithm Hash digest
SHA256 949cba32ef6148df0df0365e37e1109204cc3cec274f749a32cfb73f8bcd109a
MD5 9996fac5691553a8f118b8d678002d90
BLAKE2b-256 4d8bab20739a21c2498aaf0b9def76b890c22cb7c5379367dca0d5ed5769b225

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4df65f138bc62f5595e3a359781c31d56063b54aab5aca6c1a2df9c1755d29a9
MD5 a5140f8168c5c322199782ba60da1174
BLAKE2b-256 9ed57e2a17bfa9bed2fccf556e7f3b00e5bf202fdef7a20a95fe444705deb5e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.29-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0bb163153eaf50158bcac6f4bdf55f8596d5b0c1f54ff48e789d30a8e73c9e9f
MD5 b5a4f2659566007b038029df29237738
BLAKE2b-256 72190b7c199ba8b83ef1fac4ab7f698c6889264f67612f4361e62b00534bea41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.29-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 84baf9a75286db41e7cf381f77ce5e84adba0620267f059d722dc3b495474c14
MD5 0f29ca18c195e8a3ef5172ccc1a9083e
BLAKE2b-256 166d26ac752162835373f73fd00c6f2294dc3b4e15b8712393658571a77be679

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.29-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 40b0379d8a9969287148073b744c830dd750a3846505a3a436de05d37dc00a5d
MD5 a29dd7f7c3f724dce0db709d86f68e17
BLAKE2b-256 b4a1d0d9b78eaaf349dc56af14cd1eae2bfa9bd69a52e33bb2fa833aa7f8353f

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