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.45.tar.gz (120.2 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.45-cp312-cp312-win_amd64.whl (142.9 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.45-cp310-cp310-macosx_13_0_arm64.whl (141.7 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.45-cp310-cp310-macosx_10_9_x86_64.whl (141.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251224.45.tar.gz
  • Upload date:
  • Size: 120.2 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.45.tar.gz
Algorithm Hash digest
SHA256 86adc4e592db4262ab27ed0ddee7821862c81790ea0b805c89bf4883d81b4161
MD5 14d82813637553e86ec2b8c356a53df3
BLAKE2b-256 9bdb60d87151ac60f9b31aaeb1996a79fbae87ed674d051fd83d255dd52cb6a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.45-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6aaf12a14106f7aedd87a3b9bcbd2c3fa07c33a6774143d55b8a6f60e81c566e
MD5 a1e3ba9ea9a8af6f66c0f51678b856d3
BLAKE2b-256 a72254c630f8a632f2297f6a288bbd66ee4c7a0469205cc5b505e8f3063a2e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.45-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99e396aa0f7f54af96ba9af058540653aeef0957c92faceb19c5547b42688215
MD5 3143e75701d2709056752d932114457f
BLAKE2b-256 629edd8e16ca44634db8c2167d618a9caec00a03a011f472373b0c3334a6c04a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.45-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 418bcf26da670df3c3e698aabb0b3826521824b9c4579998fd70c2051f92d0a9
MD5 ff9feae1104b61314cfe41d8e2932aa0
BLAKE2b-256 987128c07b7a7fb1262675c68d98621c44f3c1055497cb4d23d07c7f3ebf67e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.45-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cd979233cf0e257bc14f2a01c3f887d6f01a172291c3c58617bf70963690a2c0
MD5 849092342247018367bf27a5783565d9
BLAKE2b-256 cac674547b676ce2d7f09f6ada28249fc292a0d5ed4a5eaea99e31378e753b80

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