A unified API layer for all Indian brokers
Project description
tt-connect
tt-connect is a unified Python broker API for Indian markets. It gives you one canonical interface for auth, instruments, orders, portfolio, and reports across brokers.
Who This Is For
- Trading system developers who want broker portability
- Teams building execution, monitoring, or portfolio services
- Contributors extending broker support and reliability
Quick Start
cd connect
poetry install
from tt_connect import TTConnect, PlaceOrderRequest
from tt_connect.instruments import Equity
from tt_connect.enums import Exchange, Side, ProductType, OrderType
with TTConnect("zerodha", {"api_key": "...", "access_token": "..."}) as broker:
req = PlaceOrderRequest(
instrument=Equity(exchange=Exchange.NSE, symbol="RELIANCE"),
side=Side.BUY,
qty=1,
order_type=OrderType.MARKET,
product=ProductType.CNC,
)
order_id = broker.place_order(req)
print(order_id)
Documentation
| Guide | Description |
|---|---|
| Quick Start | Get installed and place your first order in 5 minutes |
| Examples | Complete working code for Zerodha and AngelOne |
| Contributor Guide | Local setup, testing, implementation workflow |
| Architecture | System design and internals |
Broker Capability Snapshot
| Capability | Zerodha | AngelOne |
|---|---|---|
| Auth modes | Manual | Manual + Auto |
| Profile/Funds/Holdings/Positions | Yes | Yes |
| Orders (place/modify/cancel/list) | Yes | Yes |
| Trades | Yes | Yes |
| Instrument fetch + resolve | Yes | Yes |
| Streaming (WebSocket) | Yes | Yes |
| GTT orders | Yes | Yes |
| Margin calculator API | Not supported | Not supported |
Development Commands
make lint
make typecheck
make test-fast
make coverage
Legal and Risk Notices
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
tt_connect-0.1.0.tar.gz
(56.1 kB
view details)
Built Distribution
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 tt_connect-0.1.0.tar.gz.
File metadata
- Download URL: tt_connect-0.1.0.tar.gz
- Upload date:
- Size: 56.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.5 Darwin/25.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59872fc8f2c8c08117440ea2d3fcacf993f1f0e47b223fce5f68eee58af13fd3
|
|
| MD5 |
e8473ecf06843b550987e822b04618c1
|
|
| BLAKE2b-256 |
08df968a3b4af35448c5c52eaa517757a6808b56884cec82c1fc1755034286c9
|
File details
Details for the file tt_connect-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tt_connect-0.1.0-py3-none-any.whl
- Upload date:
- Size: 71.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.5 Darwin/25.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9197c260a4dd1695b8374d7a5afa12520d9a4816065636cc26f386fe332c61cc
|
|
| MD5 |
5540d1bb8017b22db26636e20e468e55
|
|
| BLAKE2b-256 |
c230274b35bd5afb6c3d054d16a0061145c212535a9df73de8e505104ecdb924
|