Documentation

API Integration

 API Integration

Connect  to Trade Apps step by step: static IP, a free Personal app on Kite Connect, API key and secret, Connect.

What you need before you start?

#

This page connects your  account to Trade Apps, from start to finish. It takes about 10 minutes the first time. After that, you only press Connect once each trading day.

You will move between two websites: Trade Apps (our platform) and Kite Connect developer site. Keep both open in two browser tabs.

  • Your  trading account, active, and your login details for it.
  • Your Trade Apps login, with this broker account already showing under Settings → Brokers Connected. If it is not there, WhatsApp support at 9398840360 — accounts are added by our team.
  • A laptop or desktop is easier than a phone for the broker portal.

Step 1 — Get your static IP in Trade Apps

#

Brokers accept API orders only from an address you have approved, called a static IP. Trade Apps gives you one with your subscription. Free-trial accounts get none, because Forward Testing does not need it.

Open Settings. Under Brokers Connected, find your  account and click the small pencil (Edit) button on its right.

In the form that opens, the Static IP box says Not assigned yet. Click the Get static IP link under it. A box appears with Your static IP (IPv6) and a Copy IP button. Under it is the Redirect URL with a Copy redirect URL button. You need both in the next step.

Copy the IP now (and the redirect URL, if shown) and keep this tab open. If the form already shows a static IP, there is no button — copy the IP from the Static IP box, and the redirect URL from the Redirect URL box in the same form.

  • Your IP for  is an IPv6 address. It is long, with colons — for example 2402:1f00:8300:… Copy the whole thing.
  • Paste only the IP. Never add a port number, and never use your home Wi-Fi or mobile IP.
The account edit form in Settings for a new account: Broker Type, Client ID, Static IP showing Not assigned yet with the Get static IP link under it, the empty API detail boxes, and Save Credentials.
A new account: no static IP yet, so the Get static IP link shows under the box. Your own form shows your own client ID.

Step 2 — Create a Personal app

#

Open the Kite Connect developer site. If you have never used it, click Sign up first — this account is separate from your Kite login. Then log in.

Go to My apps → Create new app. Choose Personal — it is free and enough, because Trade Apps brings its own prices. Fill in:

  • App name — any name, for example Trade Apps.
  •  Client ID — your client ID, for example AB1234.
  • Redirect URL — paste the one from Trade Apps.
  • Postback URL — leave empty.
  • Description — a few words, for example Algo trading through Trade Apps.
The Create a new app form: Type with Connect, Personal (selected, Free) and Publisher; App name, Client ID, App icon, Redirect URL, Postback URL and Description; and a Create button.
Pick Personal. Connect costs money and is not needed.

Step 3 — Add your static IP

#

Click Create. Then click Profile at the top. In IP Whitelist, paste your Trade Apps IP on the first line and click Update at the bottom of the page.

The Profile page of the developer site with Your name, E-mail, Phone, Website, About you, State of residence and the IP Whitelist box, which takes up to 2 IPs, one per line.
Grey boxes hide private details such as keys, IPs and names.

Step 4 — Open your app

#

Click My apps at the top. Your app is listed with its API key. Click the app’s name to open it.

My apps on the developer site: each app with its Active status, name, Personal type and API key.
Grey boxes hide private details such as keys, IPs and names.

Step 5 — Copy the API key and API secret

#

On the app page, the API key and API secret are on the right. Copy both. Leave Re-generate API secret alone — it would make the old secret stop working.

The app page: App details on the left with App name, Redirect URL and Postback URL; on the right the API key, the API secret and the Re-generate API secret button.
Copy these two. Grey boxes hide private details such as keys, IPs and names.

Paste the details in Trade Apps

#

Go back to the Trade Apps tab. Open Settings, click the pencil on your  account again, and fill in:

  • Client ID — your  client ID, for example AB1234.
  • API Key — the API key of your app.
  • API Secret — the API secret of your app.
  • Click Save Credentials.
The same edit form in Settings, with only the boxes for the API details outlined.
Paste into the outlined boxes, then click Save Credentials.

Connect and check it worked

#

Under Brokers Connected, click Connect. The  login page opens; log in there and you come back to Trade Apps by yourself.

When it worked, your account in Brokers Connected shows a green dot and the words Session active (broker validated). You are ready to trade.

Broker sessions end every night. Each trading day, open Settings and press Connect once before the market opens. You do not repeat the setup.

The account under Brokers Connected after setup: a green dot, the client ID, the static IP and the words Session active (broker validated), with the edit, refresh and Disconnect buttons.
Green dot and Session active — the setup is done.

If it does not work

#

Check these in order. Most failures are one of the first three.

  • Wrong IP or IP saved in the wrong box. In the Kite Connect developer site, the IP must be exactly the one Trade Apps shows, in the IPv6 box. After changing it, wait 2 minutes, then press Connect again.
  • Redirect URL has a typo or extra space. Copy it again with the Copy redirect URL button and paste it fresh.
  • Key and secret swapped, or a space copied with them. Paste each one again into the right box.
  • IP saved on the app but not on Profile. The IP whitelist lives on the Profile page. Check it is there and you clicked Update.
  • Still stuck? WhatsApp 9398840360 with a screenshot of the error and the time. Never send your password, OTP, TOTP secret or API secret — we never need them.