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.1.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.1-py3-none-any.whl (90.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tt_connect-0.8.1.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.1.tar.gz
Algorithm Hash digest
SHA256 35a33f2ef07dd8a2e687150767f1a74c52467e78be1ebb0630c83cd43f3d631c
MD5 9de8e1c56bc3b5e40e66bc03b92972b1
BLAKE2b-256 ee5cfdea0a1d74da434ab92030eec9214bbf52a8d27e0b5288d9385e0de4461c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tt_connect-0.8.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f400ead186ca1579d3b3eb8710e7e84d2193fa471074607a2678a7b45481ffe2
MD5 dc3eed99d484a3289eeca0109bc7a20b
BLAKE2b-256 80331ebfb189fa09997fc09531f5f681b5c524a604f5745046efe4bac2bcbfd3

See more details on using hashes here.

Provenance

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