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.24.tar.gz (110.7 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.24-cp312-cp312-win_amd64.whl (134.6 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251223.24-cp310-cp310-macosx_13_0_arm64.whl (133.5 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251223.24-cp310-cp310-macosx_10_9_x86_64.whl (133.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251223.24.tar.gz
  • Upload date:
  • Size: 110.7 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.24.tar.gz
Algorithm Hash digest
SHA256 5edbf2595704c9bf92cbbfab1a707d922c542c5493bd5e57b91553c9ee7b8b92
MD5 c68116d0cc77d3b6f6a3d4307b8e0019
BLAKE2b-256 2f44d5687757f63740dea5c97ca78ce0e59b60603775ae3c1b49ce4050554142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f0a8e128038f8fa51298a7f1600f7514b57b442cbd3cbb71f2d96d654b2aed9d
MD5 b4c7d904498e4f1e16313168fc8e413b
BLAKE2b-256 62698334efcc6d157c9254ff287f619d9bb72d316c3053846ccfbd1753c5e8d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.24-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 40a93e31b91dda24f870e0714fe8f8e4f2d92d22f75534c5beea61188fc18888
MD5 077fcd4d8e36d690e292a41ec31ee248
BLAKE2b-256 35ee7f1f307785a0f68f42e8c8838ebb428040dcee07d0c21769d357d8139a69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.24-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a248654e154092d88292834419a8698e3f1ffd8a8b99864e54a79bb7fcb7274d
MD5 2e787eb135eb10ce416710b0db745f0a
BLAKE2b-256 a1f210ec9848cdd73eb6f4e45609b71ae497cd5c7f23c58ebaa06db7d7ecd923

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.24-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8dfecddbda0ad60fa99503f9bc32ce6761da5e739bbd40180ad583372e2ce037
MD5 1a0786d6145737baf1be44134d113e1d
BLAKE2b-256 87798abedc573c45f7b81871de610db799971205236223054c44056259ae253a

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