Skip to main content

A unified API layer for all Indian brokers

Project description

tt-connect

CI Docs PyPI version Python License

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


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.9.1.tar.gz (69.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tt_connect-0.9.1-py3-none-any.whl (92.4 kB view details)

Uploaded Python 3

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

Hashes for tt_connect-0.9.1.tar.gz
Algorithm Hash digest
SHA256 dbaf4c7b6530efeba8d42d76362de71ad351d33d20ea1e2ebb2b40dfb7423ed9
MD5 726e098dfebd6228b29a3e3ab842598f
BLAKE2b-256 42f6083a60cb95359d9cd3b8674565f8663a858ff2ff56bc111f544cda180614

See more details on using hashes here.

Provenance

The following attestation bundles were made for tt_connect-0.9.1.tar.gz:

Publisher: publish-main.yml on Tiny-Trader/connect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tt_connect-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb1b5e95b51544815697582d3efcede11d957582f480e81016ed00d8112844c
MD5 5f9608f18b31d083d23747f1fed11008
BLAKE2b-256 1fdd190831a61581b280949abdbe1b1ffdcab66cf8e63465a38bd230260e85dc

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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