smartapi-python
Angel Broking openApi integration
What it is and what it does
smartapi-python is a client library for Angel Broking's trading platform REST API. It wraps HTTP endpoints to let you authenticate, place orders, manage GTT (Good-Till-Triggered) rules, fetch historical candle data, and stream live market ticks via WebSocket. The library handles session generation, token refresh, and order lifecycle management.
The package is designed for developers building trading bots or investment platforms on Angel Broking. It depends on requests, six, and python-dateutil for HTTP calls and date handling. The description excerpt shows usage patterns for order placement, GTT rule creation, historical data queries, and WebSocket subscription for real-time market updates.
Use it for:
- Build a trading bot that places limit orders and monitors fills in real time.
- Retrieve historical OHLC candle data for backtesting or technical analysis.
- Set up Good-Till-Triggered rules to automate conditional buy/sell orders.
- Integrate Angel Broking trading into a portfolio management dashboard.
- Stream live market ticks and order updates for a custom trading interface.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for Angel Broking's REST API that enables real-time stock market order execution, session management, and market data retrieval through HTTP endpoints.
Yes, if you are actively trading on Angel Broking and need programmatic order execution. The low install friction and absence of known vulnerabilities are positives. However, the dormant maintenance status (553 days since last release) and unclear license are significant concerns—verify that the library still works with Angel Broking's current API and that the license terms suit your use case before committing to production.
Install
smartapi-python on PyPI
pip
pip install smartapi-pythonuv
uv add smartapi-pythonpoetry
poetry add smartapi-pythonInstalling smartapi-python
Before you install
Low install friction with three common runtime dependencies (requests, six, python-dateutil). Maintenance is dormant—last release was 553 days ago—so expect no active bug fixes or security updates.
License in practice
License status is unclear; no SPDX identifier or raw license text is available. Verify the actual license terms before use in proprietary or commercial projects.
Quickstart
pip install smartapi-python
from SmartApi import SmartConnect
api_key = 'Your Api Key'
smartApi = SmartConnect(api_key)
data = smartApi.generateSession(username, pwd, totp)
Requires Angel Broking credentials (API key, client code, PIN, QR token) and active trading account.
Verify before relying
- Whether the package actually supports Python 2.7 and 3.5–3.7 as classifiers claim.
- Current state of Angel Broking's API endpoints and whether they remain stable.
- Whether dormant status means the library is still compatible with Angel Broking's current platform.
- Additional dependencies mentioned in description (pyotp, logzero, websocket-client, pycryptodome) and their role in runtime vs. optional setup.
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, six, python-dateutil |
| Maintenance | dormant — 553 days since the last release |
| First released | |
| Downloads | 103,807/month — #12,783 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: smartapi_python-1.5.5-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
fyers-apiv3Official Python client library for the Fyers…
permissive · top 15,000 on PyPI
kiteconnectOfficial Python client for the Kite Connect…
permissive · top 15,000 on PyPI
robin-stocksProvides a Python interface to the Robinhood,…
permissive · top 15,000 on PyPI
alpaca-pyAlpaca-py is the official Python SDK for…
permissive · top 5,000 on PyPI
hyperliquid-python-sdkPython SDK for trading on the Hyperliquid…
permissive · top 15,000 on PyPI
coinbase-advanced-pyOfficial Python SDK for the Coinbase Advanced…
permissive · top 15,000 on PyPI
growwapiSDK for connecting to Groww's trading platform…
permissive · top 15,000 on PyPI
metatrader5Connects Python to MetaTrader 5 Terminal to…
permissive · top 15,000 on PyPI
python-binanceUnofficial Python wrapper for the Binance…
permissive · top 15,000 on PyPI
wechatpyWeChat SDK providing Python bindings for…
permissive · top 15,000 on PyPI