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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.43-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.43.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251224.43.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.43.tar.gz
Algorithm Hash digest
SHA256 1a9eb22677d94058fc0080200a71c09ca43ac45282b412dacd1e624c2ce404e1
MD5 2d693a34c37526c34ec2d0b463f031a6
BLAKE2b-256 77c70fe4f7607e3b8e8d0cded085c06b7383f4d4e4c6b40b4e99ec27c3e764a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.43-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7c5ef1f517afea8afe0f1d43fabba12f447be32b3348905882f82b26625d5b81
MD5 eec243bf821be135febcf1c48c80bdaf
BLAKE2b-256 c0b7f6b3e1b68d102e671d5f0e31d834b73fa08df8379ada3235d631f1111c4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.43-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7effabf29190d576b200e351319281baa99f6bdc289671bcbbb0867413a8c2ff
MD5 ab452296c088850ad64f35c2c1f639ba
BLAKE2b-256 6f6e57e2b2d75dc4deea6d713faf1856fc180b44f748084d996c139749a79b03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.43-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 46e154b34acc96bc0eba110f99013f3c07123de20cf3c6063f0072e405326aa8
MD5 7a601d06794d2a86912475509e9bdf6f
BLAKE2b-256 32b894e99932f7d23046a51ff9620ea987e7c221040e36f85fc5d609b3444a33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.43-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7cecf9244467719322881941cbfc5dac2bae41cd4214993c31e7a1b04eea9859
MD5 32c1e3057e7203a5b98274ecb88e506d
BLAKE2b-256 36f1a7fb9c70144a6416c3cce0fe5540f0aa9754c60c5bfc901e8783b55d6b91

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