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

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.33-cp310-cp310-macosx_13_0_arm64.whl (145.8 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.33-cp310-cp310-macosx_10_9_x86_64.whl (145.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251224.33.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.33.tar.gz
Algorithm Hash digest
SHA256 0d4ad516914fc6b69276897307f50154ad8448bf37db1a2b2d3e36cea7a402ff
MD5 03888ea933781d3e08a44aa9bd09fa42
BLAKE2b-256 979d4ef11d52cd996ac69a77e817785923fe9fd009dac8e0277693278459a2d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.33-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2db695ca690abc3be76898b126c83151d4d1fd921dbb5e17f4eac90bf0bc01ec
MD5 017eabe9a7b70a4c3368d3452f0a4b55
BLAKE2b-256 c54d96bdc46e9e03095c881f4cbaf51cfcf988eda8bb49135bb877463629a2cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.33-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 39ca4aecbb7640063d63bbeba940e5237e42b1a5e6e269380ff43ac6e72029ec
MD5 d9b25a32e7108218f5fc028d111ddcc6
BLAKE2b-256 bb17dcc3c056af2492e64ea330bb635aa95bcb29f6d634ba4efff395b4c5a7a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.33-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 535869bd86d49c6d25a1dd8d93d821ab60fbcc9fe25759a2b546fde1e1c2c8df
MD5 45093edc44dacae5da5c51c8938d2fe3
BLAKE2b-256 6e3b39db8b256a92c4879195fdff77a6977f327b19fdeefb059824f32ebb928e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.33-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e663dc1d0f44ae6d7ff86539b42054f3303218f54df849d0585f153b8550eaa1
MD5 bf72538cd349ffe51dd4598788d33653
BLAKE2b-256 245708a9c67a776b89c417e8901ef0217660bb0109cd5fbffdcc3f146eab28b6

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