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
pkbrokers (# 1 Stock screener/scanner for NSE India)
| Platforms | ||||
| Package / Docs | ||||
| Tests/Code-Quality |
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pkbrokers-0.1.20251223.21.tar.gz.
File metadata
- Download URL: pkbrokers-0.1.20251223.21.tar.gz
- Upload date:
- Size: 110.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
331480fcfdff99f78db164f9956da4761cce1cfce6592ddd4cc9547c41e91fc6
|
|
| MD5 |
cb4763403db194b336d24f9aff65af59
|
|
| BLAKE2b-256 |
96dd4c93c378520795f7aebe0f885f4260de55e4a16855faa86ac34691d6cbbb
|
File details
Details for the file pkbrokers-0.1.20251223.21-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: pkbrokers-0.1.20251223.21-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 134.4 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddb1527ac8c1fc1b052bedbf7395da01a2b8b8529a206629491c910443bfa8a4
|
|
| MD5 |
70b171e2045ba8a13a61138f946eaff0
|
|
| BLAKE2b-256 |
d13f70aa8181366c58dd5aea2f61c8b5c91cb678344687c3406f626cc07cf00f
|
File details
Details for the file pkbrokers-0.1.20251223.21-cp312-cp312-manylinux2014_x86_64.whl.
File metadata
- Download URL: pkbrokers-0.1.20251223.21-cp312-cp312-manylinux2014_x86_64.whl
- Upload date:
- Size: 133.4 kB
- Tags: CPython 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
612502146cfd6c6449b27cf977fbcf444eaec775b0ef6686721659adc0c3e6e5
|
|
| MD5 |
a20904b35a0fd047cd586c78518e99b4
|
|
| BLAKE2b-256 |
53d8f73b1440a830f47af867a97cf27575859a2298ab176fbde469e7eb00f207
|
File details
Details for the file pkbrokers-0.1.20251223.21-cp310-cp310-macosx_13_0_arm64.whl.
File metadata
- Download URL: pkbrokers-0.1.20251223.21-cp310-cp310-macosx_13_0_arm64.whl
- Upload date:
- Size: 133.3 kB
- Tags: CPython 3.10, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b94754d7480b4b68e155d77f74a784c84c1b19c69ab97dcaae54d33bb953c34e
|
|
| MD5 |
4cc6081fba8fd2fabf2feba738e2a829
|
|
| BLAKE2b-256 |
b8af58084a33c20bf1e05a62e45d88183a4e54a72acdb68dbdfdf9e61dcad961
|
File details
Details for the file pkbrokers-0.1.20251223.21-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: pkbrokers-0.1.20251223.21-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 133.3 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52e20d01a8655e841de724ceef4459a1851e6fd3a269f9271eb17f56861bfa63
|
|
| MD5 |
0d38d3aa3d6ff04b260cf713640551af
|
|
| BLAKE2b-256 |
a4334b7209f626d6995b62a7eeebae530db588ac8d6bfceac35ceee32b7eef0d
|