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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.28-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.28.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251224.28.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.28.tar.gz
Algorithm Hash digest
SHA256 bbb6fd8e7b64b0cfe4929a4f347eb442d26a46745041b5bc4ec7115da6710a03
MD5 2f888d37c2d5b52a635d1fc13b8574b9
BLAKE2b-256 be2fe33a171464836d8b3314e82bdfbe79a5ead05bebb6dc82a49903423bebd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d0a50bf0ed75b8882b6f53db1dc5eeb6a08a0521513728c328bf8160c6ab8233
MD5 760704db64082698db65ffa941f7c5ef
BLAKE2b-256 b71e9d33d9d2d8a1afdeb9f252df5988122eb25e251d435e907170778d54eade

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.28-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8fab8bc6c9118c30d1a810a1b234cade768da9e56b5c8a19ec48520ea169ed92
MD5 535191efde6691207f00f5e851d21015
BLAKE2b-256 3ea10e0894ad7ff9816cd415b51bbc06c93537d6e0085d4ea2f0bb8c8b8b24f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.28-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e61f8c45fb81dbbcffc5a5793c235d34f94e520405f641732c1ae7db2d6fa9fd
MD5 3abb9a03434ebc8c8e571fa4f5d9311f
BLAKE2b-256 a35acf522bf42e8824e56b8811f171fae59e86a68e94aa577f5c4e298ae56228

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.28-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b2d7a6127108333f728b731fd92a0f40bf6819818748c61e7717292e83e06f36
MD5 f2514e6f4b6e68c0b824a9163f2f6f3a
BLAKE2b-256 966e6307816e93570943505699d6d08cef440df890d8702ce11845259902eff5

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