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.46.tar.gz (121.4 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.46-cp312-cp312-win_amd64.whl (143.7 kB view details)

Uploaded CPython 3.12Windows x86-64

pkbrokers-0.1.20251224.46-cp310-cp310-macosx_13_0_arm64.whl (142.6 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

pkbrokers-0.1.20251224.46-cp310-cp310-macosx_10_9_x86_64.whl (142.6 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pkbrokers-0.1.20251224.46.tar.gz
  • Upload date:
  • Size: 121.4 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.46.tar.gz
Algorithm Hash digest
SHA256 193bbfe1acab43f60233dd7c478751a24f3b14e25013e3a29d68a2ded8c23f38
MD5 5ce6588677cb3f6b1c2ab5537d9c692a
BLAKE2b-256 c529ad9c2ef13e1698ad8cadef3a214e20144ed50a24bb51aef01d245992e315

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.46-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8b61f5bbf251263f9333bdd58f5e8f7eea4ba1a6447da4eddc9848b1e02f408f
MD5 93e03d056de4dc795fd7bcbec0d98461
BLAKE2b-256 fcb566ce80f85a1f7b11975d5728bb306fbd9458e93d8632957758613d0e4563

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.46-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f36898fead7b91dbea8425627d0ecfc284d5fa4b4e2e3e6e7e92ff198b7df2d5
MD5 e1484cfc0cd0b1485f27ac84434c3dc6
BLAKE2b-256 cf549548a0ba1f2e9b82f5aa24750719a6c64e10768a7bfd5a58c28de88c652c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.46-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 eb89db6ad4119ef6acefae6e805eaf64137aea0b3e73f4f046fd7b70cccfecfd
MD5 967a12eb594bc5b5045d039825cb89ea
BLAKE2b-256 8b3e82185f010f635358d1725bfc34eb325b99c71e68f9f583555dda2df51781

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pkbrokers-0.1.20251224.46-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 321d829da556b7841babf7d499e67cb0e1b70ae09cd431b15508d1466c444955
MD5 6b94a76c778d1eb329d8416d379e7913
BLAKE2b-256 d06b45f1dbc9cdfa6cb8937f61a93b2703d0305037d2397fe4652540fe1eb157

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