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

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.49-cp310-cp310-macosx_13_0_arm64.whl (145.9 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.49-cp310-cp310-macosx_10_9_x86_64.whl (145.9 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251224.49.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.49.tar.gz
Algorithm Hash digest
SHA256 3f8b70daa20548aac8fd40b38958d63f81d6b5f674bc57403aa2df1de55efff7
MD5 e7feb070109f96240d83b3313f1de187
BLAKE2b-256 c7a0887a2bda6957f0aadf9a6fee31d1b5ed448c6ec609fdd75968053804add5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.49-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e0aed1e888aaf25fbc5c349339201e79552d9cb9d04759aeb6fd05d3b2bf3da3
MD5 c9a8e70530b703e28d37172d7f27db71
BLAKE2b-256 4da9a8b1846199c197629524c682da3f98751a17c8f4f734e71e203b60894258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.49-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31ee6f20811926614868eedd1542513f014164afffbe9dd4b043faaeefc3c0de
MD5 6bda433cf83bcf795fd0ab957dd550ac
BLAKE2b-256 7905fc0ef51850a7e4fba9460e233c29ae54fccf2946cb0082508edf685b3d92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.49-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 674f3297e8a3e8becb01eab6b9d5f2b5ea2add7b9b734c6af058cda6ad3d81f5
MD5 1af8c457a03f9b0ee2ad000da7114b76
BLAKE2b-256 c53f472f8c6ae35375fd5d3f631cc6c99534251ada5bc879552d1fbedeb514c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.49-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c5cf95c9db9de23129baa2caeef0fadedd13114a14041980c13a7e823c2ad458
MD5 2204d73640c4d07d8dcf706c96855a99
BLAKE2b-256 75c9bb8ee574fc2702b02b80ecd0716442001a75c7ca8e4adb1ae0117659c9b3

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