SDK
Documentation under /sdk/
-
Getting started
Install the official Python client, authenticate, resolve an instrument, read the market, and place and cancel an order.
-
Authentication
Mint a token in one call or share one across processes, narrow its scopes, and rotate at 06:00 IST.
-
Orders
Place, modify and cancel orders, and read the order book and trades from Python.
-
Portfolio
Read your open positions and demat holdings.
-
Funds
Read available balances and quote the margin an order or basket would need.
-
Account
Read your profile.
-
Market data
Last traded price, quotes with depth, candles and the option chain.
-
Scrip master
Load the daily instrument file and look instruments up by id, symbol or ISIN.
-
Live streams
SahiFeed: the tick stream and order updates, with reconnect and a local tick cache.
-
Errors
The exception hierarchy, how a reply maps onto it, what each exception carries, and how to catch by class.