Features
Now, let’s take a look at how to add Upstox account in Stocks Developer.
Letโs understand how to add a Upstox account in AutoTrader Web.
Demo
Step 1 – Setup Upstox API app
- Go to Upstox API apps dashboard
- Click the New App button
- Enter following details for the app:
- App Name: Stocks Developer
- Redirect Url: https://webx.stocksdeveloper.in/auth/upstox
- Postback Url: https://apix.stocksdeveloper.in/postback/upstox
- Static IP: See below “Static IP Setup“
- Keep other options blank (they are optional)
- Tick “I accept terms”
- Click Done
- Once your app is created, Upstox will show you following fields which we need in Step 2
- API Key
- API Secret
Step 2 – Add your account in AT WEB
- Go to AutoTrader Web menu (Settings -> Trading Accounts)
- Click Create button
- Select Broker as Upstox
- Select platform as UPSTOX_API_IPV6
- Enter API Key
- Enter API Secret
- Click Validate button
- On successful validation, click save to the account
- Thatโs it, you have successfully added your Choice account. Do not forget to read these known limitations.
Old Method
Demo
Step 1 – Setup Upstox API app
- Go to Upstox API apps dashboard
- Click the New App button
- Enter following details for the app:
- App Name: Stocks Developer
- Redirect Url: https://webx.stocksdeveloper.in/auth/upstox
- Keep other options blank (they are optional)
- Tick “I accept terms”
- Click Done
- Once your app is created, Upstox will show you following fields which we need in Step 3
- API Key
- API Secret
Step 2 – Enable TOTP
- Note: If you already have TOTP “KEY” available, you can skip TOTP step.
- Login to Upstox
- On top right side of screen, go to menu (My Account -> My Account)
- In My Account section, look for the option Time-based OTP (TOTP)
- If you have never enabled TOTP, please click Enable TOTP
- If you already have TOTP enabled, please click Reset TOTP
- Look for Unable to scan, click to copy the key (See screenshot below)
- Copy the key & save it in notepad, we will need it in Step 3
- Open any of your Authenticator Apps (such as Google Authenticator, Microsoft Authenticator, Authy, etc.) on your smartphone.
- Click on โScan a QR codeโ under Add an Account Section and allow access to the phone camera.
- Enter the 6-digit totp shown in Google Authenticator app
- Click ENABLE TOTP
Step 3 – Add your account in AT WEB
- Go to AutoTrader Web menu (Settings -> Trading Accounts)
- Click Create button
- Select Broker as Upstox
- Select platform as UPSTOX_API
- Enter your Upstox login id
- Enter your 6-digit 2FA PIN
- Enter TOTP “Key” (that we had saved earlier)
- Enter your Phone no.
- This should be same as what is registered with Upstox
- Enter API Key
- Enter API Secret
- Click Validate button
- On successful validation, click save to the account
- Thatโs it, you have successfully added your Choice account. Do not forget to read these known limitations.
Static IP Setup
This is a 2 step process:
1. Before Account Creation
- During creation of your API on the broker’s website, create API with a dummy IP address
- IP Type: IPv4
- Primary Static IP: Just google “what is my ip” & enter your IP (we will update this later, see below section “Static IP Setup”)
- Algo Registration Type: Non-Registered
- Now add your account in our system (as explained above) & then come back to Step 2 given below.
2. After Account Creation
Once your account is added in our system, then do the following:
- Get Static IP
- In our system, go to menu (Settings -> Trading Account)
- Click the “Pencil icon” next to your account to EDIT it
- Click “Get Static IP” button
- You will get static IPs unique to your account
- Assign Static IP in our newly created API on broker’s API screen
- IP Type: IPv6
- Primary Static IP: (You will be shown in the EDIT screen)
- Secondary Static IP: (You will be shown in the EDIT screen)
- Algo Registration Type: Non-Registered (less than 10 orders / second)
For further help, check this YouTube video showing “How to map Static IP?“