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.0.tar.gz (68.9 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.0-py3-none-any.whl (91.7 kB view details)

Uploaded Python 3

File details

Details for the file tt_connect-0.9.0.tar.gz.

File metadata

  • Download URL: tt_connect-0.9.0.tar.gz
  • Upload date:
  • Size: 68.9 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.0.tar.gz
Algorithm Hash digest
SHA256 3739768f8534c26ae891afeb3bc293fac1efcb1ff8984be14688b9aa7c6f5bcb
MD5 718c478775a44ebbf11ca474a9a31871
BLAKE2b-256 b06cc977d3fdc0654d11b94e6bb7de1b2da165a7010930996ac13b1e58968271

See more details on using hashes here.

Provenance

The following attestation bundles were made for tt_connect-0.9.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: tt_connect-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 91.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26f0c18045cf6429cbe35f94a41d2aa7d5c15ec48f25afb6beced9675b64879f
MD5 6bcc9c24665bd9bf698eb93350474102
BLAKE2b-256 c829cfa8cb1d9a99c01d40677d1e738e67fbb80a878efe4fa33167e63a13a92f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tt_connect-0.9.0-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