Skip to main content

A unified API layer for all Indian brokers

Project description

tt-connect

tt-connect is a unified Python broker API for Indian markets. It gives you one canonical interface for auth, instruments, orders, portfolio, and reports 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

cd connect
poetry install
from tt_connect import TTConnect, PlaceOrderRequest
from tt_connect.instruments import Equity
from tt_connect.enums import Exchange, Side, ProductType, OrderType

with TTConnect("zerodha", {"api_key": "...", "access_token": "..."}) as broker:
    req = PlaceOrderRequest(
        instrument=Equity(exchange=Exchange.NSE, symbol="RELIANCE"),
        side=Side.BUY,
        qty=1,
        order_type=OrderType.MARKET,
        product=ProductType.CNC,
    )
    order_id = broker.place_order(req)
    print(order_id)

Documentation

Guide Description
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.4.0.tar.gz (61.8 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.4.0-py3-none-any.whl (80.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tt_connect-0.4.0.tar.gz
  • Upload date:
  • Size: 61.8 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.4.0.tar.gz
Algorithm Hash digest
SHA256 02ba945918f0e24b98e4c61e19ba985640e88dc7702e8d189a9c4161d8229274
MD5 147a2433cababd2ec69b65fcf9c77263
BLAKE2b-256 22d4cdc18c822191115afb2a20f539b5cda1c503ac351515aea4a78526821d1e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tt_connect-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 80.3 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 289e1aa6aa5088d502ef69498528ff8c697b0c5e0eab8bbecd730bb0555220da
MD5 71208fca4d05c0ed934652ba29dd0cbe
BLAKE2b-256 d8308bca4550d5f3e331fb021b16c1da72ab3c15368be6b3ac90d93eb50d3d63

See more details on using hashes here.

Provenance

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