Features
Now, let’s take a look at how to add FlatTrade account in Stocks Developer.
This document describes account setup instructions for Flattrade broker.
Demo
Setup
1. Generate API
- Login to Wall https://wall.flattrade.in
- Navigate to Pi in top menu bar and click on CREATE NEW API KEY
- App Name: MyTradingApp
- Short Name: MyTradingApp
- Redirect Url: https://apix.stocksdeveloper.in/oauth/flattrade
- Postback Url: (Keep it blank)
- Description: Stocks Developer
- Agree the terms & click CREATE button
- Your API Key & Secret Key are available now
2. Get TOTP Key
- Login to https://web.flattrade.in/
- Click on your login id on top right corner to go to Profile section
- Click Security
- Click TOTP
- You’ll be a shown a QR code (which you can scan using Google Authenticator app on your phone). This will be needed for login.
- However, what we need is the TOTP Key (click the copy icon & save the key somewhere in notepad)
3. Add your Account in AutoTrader Web
- Go to AutoTrader Web menu (Settings -> Trading Accounts)
- Click Create button
- Select Broker as Flattrade
- Selectย KAMBALA_FLAT_IPV4ย as the platform
- Enter your Flattrade login id
- Enter your Flattrade password
- Enter TOTP Key (obtained from step 2 above)
- Add API Key (obtained from step 1 above)
- Add API Secret (obtained from step 1 above)
- Click Validate & Save
- Thatโs it, you have successfully added your Flattrade account. Do not forget to read these known limitations.
Screenshots
Static IP Setup
This is a 2 step process:
1. Create Broker API using any Dummy IP address
- If IP address is optional during API creation, then keep it blank.
- Otherwise, use a dummy IP address during API creation.
- IP Type: IPv4
- Primary Static IP:
- You can use this dummy IP generator website. OR
- You can just google “what is my ip” & enter your IP
- Note: we will update this later, in the next step
- Algo Registration Type: Non-Registered
- API/Algo Category: “Below” or “Less than” 10 orders per second
- Now add your account in our system (as explained above) & then come back to Step 2 given below.
2. Add your trading account in our system & then get Static IP
Once your account is successfully 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
- Depending on your broker, system will give either an IPv4 or IPv6 static IP
- IPv4 => Only one primary IP is provided
- IPv6 => Both primary & secondary IPs are provided
- Assign Static IP in our newly created API on broker’s API screen
- IP Type: IPv6 or IPv4
- Primary Static IP: (You will be shown in the EDIT screen)
- Secondary Static IP: (You will be shown in the EDIT screen – only for IPv6)
- Algo Registration Type: Non-Registered (less than 10 orders / second)
For further help, check this YouTube video showing “How to map Static IP?“