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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251223.38-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.38.tar.gz.

File metadata

  • Download URL: pkbrokers-0.1.20251223.38.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.38.tar.gz
Algorithm Hash digest
SHA256 ff9a7e1bdb4b1f9767423c11fd2d8e516b23851e3d388cdd524d14450b4a846d
MD5 c71db6c5a8aed91f956eb67d0eca7b4a
BLAKE2b-256 ba441cb9cef559568322fcf2ce07f2a3780f960422e89911ea733143d03a5ebb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.38-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 57ad7a7b3b4f10ba4c088f733c5d19703a3c2d9d92a105567800f29de4f58063
MD5 d75b7a2c3d6401379bb88569fa53f94e
BLAKE2b-256 cd065e1061e77ec6601cc6847726dcbc6b6cfc6d46f11fbbe4e777e981f1185b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.38-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f42182f4929611de24086e08d93fdbf8ecd9c606b2b8881f36b82aedcbf4b54b
MD5 e17dd991b973578bcbb3b16e65fe9505
BLAKE2b-256 a38ac7222e8d5ebdf3650d0b9e5f39c325af231abe49173bd053b6877c190270

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.38-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8e76faa1ea151f02c7d4b17d6e31fd3b303eaa9320b6945cf598f9ecac71afc3
MD5 9d26e0fef0fa9d51939db670277968fb
BLAKE2b-256 b2f0341be79a82d018e74b3846d092264378bbc498ab01756184594eb1785083

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251223.38-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d7829aa3263e93c3d7b293caabf2ec7fbcc4bd3a364e230b17eaecfe72d84304
MD5 54c1f9469e930680802f43f60f5cefe6
BLAKE2b-256 5306cfda8f68d8c7403a15550b95e878c064967ee44a6c13c2046c4b7d36442e

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