Angel Broking (Angel One) official Python SDK for the SmartAPI – trading, orders, market data, and portfolio management. Current version 1.5.5. Release cadence is irregular, driven by broker API changes.
pip install smartapi-pythonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize SmartConnect with API key, then generate session using client id, password, and TOTP.
Replace session.userProfiles with session.getProfile()['data'].
Pass the TOTP value (not just password) to generateSession.
Migrate from 'from smartapi import SmartWebSocket' to 'from smartapi import SmartWebSocketV2'.
Extract feed_token from generateSession response: obj.feed_token or feed_token key in returned dict.