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
Metadata
Release files for tt-connect 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tt_connect-0.9.1.tar.gz | 69.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tt_connect-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 161.9 kB
Release files / tt_connect-0.9.1.tar.gz
| Download URL | tt_connect-0.9.1.tar.gz |
|---|---|
| Size | 69.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbaf4c7b6530efeba8d42d76362de71ad351d33d20ea1e2ebb2b40dfb7423ed9
|
|
BLAKE2b-256 checksum How to use checksums |
42f6083a60cb95359d9cd3b8674565f8663a858ff2ff56bc111f544cda180614
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.
Transparency logRelease files / tt_connect-0.9.1-py3-none-any.whl
| Download URL | tt_connect-0.9.1-py3-none-any.whl |
|---|---|
| Size | 92.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cb1b5e95b51544815697582d3efcede11d957582f480e81016ed00d8112844c
|
|
BLAKE2b-256 checksum How to use checksums |
1fdd190831a61581b280949abdbe1b1ffdcab66cf8e63465a38bd230260e85dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.
Transparency logSecurity for tt-connect 0.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for tt_connect-0.9.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.