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.8.4.tar.gz (68.1 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.8.4-py3-none-any.whl (90.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tt_connect-0.8.4.tar.gz
  • Upload date:
  • Size: 68.1 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.8.4.tar.gz
Algorithm Hash digest
SHA256 aa90e7666bb0c94d8e231cac5ada353df3abe9607a3561438cd1148ddc0b66a9
MD5 c3ef090e6a8054b1c3f5340e9adc518b
BLAKE2b-256 ce6852927c042b1698e417885bafd22e725595acef348690a7d8a94a6d7efb8d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tt_connect-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 90.8 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.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7cd7a570bd7f65ac685af5d1c649f20b02d10f56d4ce4dc26441a00e587b88f5
MD5 7a8a2670f7d1598ea9eac78ee35c24b1
BLAKE2b-256 590ada552973b4b73bd78147f75a965e543f8a19a79f435beba4c96ae04b2974

See more details on using hashes here.

Provenance

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