Our system integrate with Angel Broking using their Smart API. Hence, you must generate an API key by registering to Angel Broking Smart API.
Demo video
How to generate Smart API private key?
Note: Set-up process including TOTP is one time activity. No need to do it everyday.
- 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: StocksDeveloper (do not give any space in the app name)
- Redirect URL: https://webx.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 & MPIN (the one that you use on https://trade.angelone.in/)
- Add API Key generated in previous step
- Click Validate button
- Once you see a success message, click Save button
How to activate TOTP?
Note: Set-up process including TOTP is one time activity. No need to do it everyday.
- Generate TOTP Secret Key
- Install Google Authenticator app on your phone
- We need the secret key that is provided by Angel Smart API when you enable the TOTP
- Login to (https://smartapi.angelbroking.com/enable-totp)
- Enter OTP received in sms/email
- Now you will see a QR Code & Secret Key (See screenshot below)
- Scan this QR Code in Google Authenticator (this will be useful for your manual login)
- Save the Secret Key or keep this page open
- Copy the TOTP Key in AutoTrader Web
- In AutoTrader Web, go to menu (Settings -> Trading Accounts)
- Click on your Angel login id (to go to edit mode)
- You will see that there is a new field called TOTP Secret Key
- You need to copy the secret TOTP key to TOTP Secret Key (field)
- Click Validate & Save
Problems
Following are known problems & their solutions:
AB1007: Your user id or password is invalid
The solution is given in this knowledge base article.