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 one canonical interface for auth, instruments, orders, portfolio, reports, and live market streaming 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
pip install tt-connect
from tt_connect import TTConnect
from tt_connect.instruments import Equity
from tt_connect.enums import Exchange, Side, ProductType, OrderType
with TTConnect("zerodha", {"api_key": "...", "access_token": "..."}) as broker:
order_id = broker.place_order(
instrument=Equity(exchange=Exchange.NSE, symbol="RELIANCE"),
side=Side.BUY,
qty=1,
order_type=OrderType.MARKET,
product=ProductType.CNC,
)
print(order_id)
Documentation
| Guide | Description |
|---|---|
| Live Docs Site | Full user docs on GitHub Pages |
| 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
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.9.1.tar.gz.
File metadata
- Download URL: tt_connect-0.9.1.tar.gz
- Upload date:
- Size: 69.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbaf4c7b6530efeba8d42d76362de71ad351d33d20ea1e2ebb2b40dfb7423ed9
|
|
| MD5 |
726e098dfebd6228b29a3e3ab842598f
|
|
| BLAKE2b-256 |
42f6083a60cb95359d9cd3b8674565f8663a858ff2ff56bc111f544cda180614
|
Provenance
The following attestation bundles were made for tt_connect-0.9.1.tar.gz:
Publisher:
publish-main.yml on Tiny-Trader/connect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tt_connect-0.9.1.tar.gz -
Subject digest:
dbaf4c7b6530efeba8d42d76362de71ad351d33d20ea1e2ebb2b40dfb7423ed9 - Sigstore transparency entry: 1188023354
- Sigstore integration time:
-
Permalink:
Tiny-Trader/connect@9edd5800f35d4f4834975d3ed6691217ea6888bb -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/Tiny-Trader
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-main.yml@9edd5800f35d4f4834975d3ed6691217ea6888bb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tt_connect-0.9.1-py3-none-any.whl.
File metadata
- Download URL: tt_connect-0.9.1-py3-none-any.whl
- Upload date:
- Size: 92.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cb1b5e95b51544815697582d3efcede11d957582f480e81016ed00d8112844c
|
|
| MD5 |
5f9608f18b31d083d23747f1fed11008
|
|
| BLAKE2b-256 |
1fdd190831a61581b280949abdbe1b1ffdcab66cf8e63465a38bd230260e85dc
|
Provenance
The following attestation bundles were made for tt_connect-0.9.1-py3-none-any.whl:
Publisher:
publish-main.yml on Tiny-Trader/connect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tt_connect-0.9.1-py3-none-any.whl -
Subject digest:
4cb1b5e95b51544815697582d3efcede11d957582f480e81016ed00d8112844c - Sigstore transparency entry: 1188023361
- Sigstore integration time:
-
Permalink:
Tiny-Trader/connect@9edd5800f35d4f4834975d3ed6691217ea6888bb -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/Tiny-Trader
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-main.yml@9edd5800f35d4f4834975d3ed6691217ea6888bb -
Trigger Event:
push
-
Statement type: