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

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.34-cp310-cp310-macosx_13_0_arm64.whl (145.9 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.34-cp310-cp310-macosx_10_9_x86_64.whl (145.9 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251224.34.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.34.tar.gz
Algorithm Hash digest
SHA256 a35c4a292c682958d358eca8b5239a831fb351b3171479a742442dfdec7b3126
MD5 aa51d54db7d2789a881f679e646d9ed5
BLAKE2b-256 6b9a307b754c005fd8d0cc1bb6b63809e282c7b9db6c228b07d91c64406e982a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.34-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ce271c85d69420cba806de9787c7b29caf5dd8d4e7b70f1eb89b0296aa042b40
MD5 ab7412d118b1d9c1256c94d2195a5313
BLAKE2b-256 97b03cb07bd23a783b0b517f5b897e66ea16738c7c69136903a3aecf195998e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.34-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c246ff0651bfddbfbce8c85be89f2a1b806df2e53edc2780f79163fb55c053e3
MD5 27a9fb14bd66c82bfd056a9bbd5e9d5f
BLAKE2b-256 020102837a2223afb0aa9dc5ac46a481666a235619364c8f1901e49aa9cfae51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.34-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b8aca3df24fbe8ef5e2e1d7b4b6b801503bbb1a071b68ec9a07615513839c7e8
MD5 212292161346be03ff999096885030f2
BLAKE2b-256 52056cb4acb5793f9adedfc4ec5dfd06b055359c44876b474a21d786eebd57d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.34-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8ca4a2d34c7e7f3db228c8d7766773393d9dc6793d625f5044ee4fa06557a74a
MD5 2e1150d54c664127c8994abfd2dd3204
BLAKE2b-256 860c549f47233f14568058d91df66adcf506bd36fca588a8b86f8bb7376eb873

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