HTTP REST
Call AutoTrader Web straight over HTTP from any language that can make a web request.
The HTTP REST API lets you automate trading from any programming language. Every language library we provide is just a wrapper over this same API, so if your language is not covered you can call the endpoints directly. The one thing you must get right is passing your API key in the request header.
What it is
The HTTP REST API is the foundation of AutoTrader Web. It is broker independent, so the same requests work across every supported broker on Indian stock exchanges. Every language library we provide (Python, Java, C#) is a thin wrapper over these same endpoints.
It is the right choice when you build in a language we do not ship a library for. Almost every modern language can make HTTP requests, so you can automate from any of them.
How it connects
HTTP REST is a direct client. Your code calls AutoTrader Web over a secure web connection, and AutoTrader Web passes each instruction on to your broker. Nothing extra needs to run on your computer.
Every client reaches the platform the same way, so there is nothing to install on your machine.
Before you begin
Have these ready first:
- A way to make HTTP requests from your language or tool.
- An AutoTrader Web account. Your requests run through it.
- An API key. Generate it in your account settings, then keep it private.
- At least one broker account added, so your orders have somewhere to go.
Authenticate
There is no SDK to install. You call the endpoints directly. The one thing you must get right is authentication: pass your API key in the HTTP header on every request.
You can find your API key on AutoTrader Web. See the API key settings guide for the steps.
Make a request
Each endpoint, with full request and response samples in several languages, is documented in the API reference. Look for the HTTP examples on each function page. Start with place a regular order and the API parameters guide for what to pass.
Write the code with AI
You can have an AI coding assistant (ChatGPT, Claude, Gemini or Copilot) write the code that calls our API, in any language for you. Many programmers now start this way, and it is much faster than a blank page. It only works well if the AI reads our documentation first. Without it, the AI guesses function names that look right and then fail.
- Give it our HTTP file first: stocksdeveloper.in/ai/trading-api/http.txt. It has every API call with HTTP examples, and nothing from other languages to mix up. If your tool cannot open links, open the file yourself, save it, and attach it to the chat.
- Then send a prompt like this one. Replace the parts in CAPITALS.
Read this file first: https://stocksdeveloper.in/ai/trading-api/http.txt
It is the official reference for the AutoTrader Web HTTP REST API.
Use only the endpoints, parameters and values it defines.
Write LANGUAGE code that calls these endpoints to
DESCRIBE WHAT YOU WANT IT TO DO HERE.
My account nickname is MY_ACCOUNT. Send the API key in the request
header, and read it from an environment variable, never from the code.
Then check your code line by line against the reference, and list
anything you were not sure about instead of guessing it.
- Test it before real money. Run it once with the smallest quantity, in one account only.
Never paste your API key into an AI chat. Ask the AI to read it from an environment variable instead, as the prompt above does. Anyone who has your key can place orders in your accounts.
Build with AI has more prompts, the mistakes these tools make, and what to check before you trade with the result.
Next steps
Thanks for the feedback. Still stuck? Contact support.
Last updated 8 October 2026