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.30.tar.gz (120.2 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.30-cp312-cp312-win_amd64.whl (142.9 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.30-cp310-cp310-macosx_13_0_arm64.whl (141.7 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.30-cp310-cp310-macosx_10_9_x86_64.whl (141.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251224.30.tar.gz
  • Upload date:
  • Size: 120.2 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.30.tar.gz
Algorithm Hash digest
SHA256 da4a1f8cb77b678e349058dece878479cdc7ced0f8731ece66d0e17b9ecc5b44
MD5 47cc03c1528ac607e47703d0486dd2a3
BLAKE2b-256 88e62f08a50d1aa581afcd362ede99f975bba6160a46833ecf6f4f97b4a45953

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ed82b7767ce0016a78cbeb370eb1df75c3578ce2d7ac9974ed9177e8c17883c6
MD5 7f55e31d5f390cf096a59cf3758b0251
BLAKE2b-256 21fee3094f61603531f7ad11a37d2011319132151e305d2f2b240ec4bb4c10f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.30-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e7737963ccae7fccdd8b0f7716abd9dc841a861b69946abe3755f45c45e90833
MD5 98abdb0a0dc4e8e0c6371c35237f620c
BLAKE2b-256 c8e0e998eca39f34201272bc78ff4deb3e3d425d8c01a251ca00d7dbb764049e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.30-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 94fefec2c31e2c0eab441a5c88d4914fdde530705c6051f5abb5fb552a97f589
MD5 fc1d134253bcdb408eaf335cade8e845
BLAKE2b-256 b40beaa8fd47bc7c698b50f70e12bf439a6a8b11988ead58f808d8343cffee0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.30-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b3782e7f9e73744d90bf2de2d99ec589b143b2473547a058a8b03e09fcf293a1
MD5 21eb8360252612833f41f5410cdaa98a
BLAKE2b-256 b0ec122cf6ad63e772dc70e84f4ee8630acb456dab1509f6cc2d1a3d5ef30910

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