Our system integrate with Angel Broking using their Smart API. Hence, you must generate an API key by registering to Angel Broking Smart API.
How to generate Smart API private key?
- Go to https://smartapi.angelbroking.com/ & sign up.
- Do not forget to add your Angel Client ID (see screenshot below)
- Login to https://smartapi.angelbroking.com/ with your new user
- Click Create An App button (see screenshot below)
- Important: Select API Type as “Trading API“
- App Name: Stocks Developer
- Redirect URL: https://web.stocksdeveloper.in/
- Add your Angel Client id
- Click the Create App button
- This will create your private API Key. Do not share it with anyone.
- If you are having multiple Angel Broking accounts, then you need to repeat above registration & Key generation process for each Angel account because each account will have a different API Key.
- To view your API Key. Go to menu (My Profile -> My APIs) (see screenshot below)
- Go to AutoTrader Web menu (Settings -> Trading Accounts)
- Click Create button (see screenshot below)
- Select Broker: Angel
- Add your login id & password (the one that you use on https://trade.angelbroking.com/)
- Add API Key generated in previous step
- Click Validate button
- Once you see a success message, click Save button
Following are known problems & their solutions:
AB1007: Your user id or password is invalid
The solution is given in this knowledge base article.