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.20251223.23.tar.gz (110.5 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.20251223.23-cp312-cp312-win_amd64.whl (134.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251223.23-cp310-cp310-macosx_13_0_arm64.whl (133.3 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251223.23-cp310-cp310-macosx_10_9_x86_64.whl (133.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251223.23.tar.gz
  • Upload date:
  • Size: 110.5 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.20251223.23.tar.gz
Algorithm Hash digest
SHA256 66a98b8c311ac2fe8b6f1e6dea24271372c1e73a5d1012d752a484ace571585f
MD5 164d2231152ce4ff3708f1fda28eacea
BLAKE2b-256 0563cc400fea2be21b95d937fe70db81d4a97565b020cbe66288520f9b762a33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 76618565f406920aa74360775b9dee2b4dfe36191c01ff763051939ce01c0c27
MD5 7705beb276cc398f3fd97c7051d0c2a6
BLAKE2b-256 62229e66b9deebeb2c917cbb13a62dc1429f507af3f12d09378fa3395a0c18f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.23-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d090bf2f4a76db76a6e90e58dc29dc7de066d9530022fe66c8be21d50820cfa
MD5 eecb9433ddbcd082947f06972a570c55
BLAKE2b-256 ce10635229db5aadc4cdbccd0e708809426413a9e20281786c7d4c308e5e13a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.23-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 07801b1f348f6cbc424b56bd6f1fe301663bc80d54ee1d8b30623096c7aa4113
MD5 024f1cde298c742208307893da180aa7
BLAKE2b-256 bab2b047a80de074ff7c282288bf51ba823cd227a7d44430c85a8d4c6d8e8487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.23-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 00dff3bf8094871e4f9b98bf3f1291153fcbdf1a18c4e667b325522f26292877
MD5 38e391324fe46b8048595f650b64a322
BLAKE2b-256 eaadcdc7a1aa08ba2d6a6a7ebcab4b2d32ba506985541d86296505aec16f2f5f

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