API Functions
Call one broker-neutral function and the system runs it on your actual broker.
Our trading API functions are broker-independent. You call one function (like `placeOrder`) with broker-neutral parameters, and the system maps it to your actual broker behind the scenes. When you switch brokers, your strategy code stays the same.
To make API functions broker-independent, we hide each broker’s implementation details from API users. You call functions that contain nothing broker-specific. Our implementation reads the trading platform from your trading account settings, identifies the broker, and then runs that broker’s specific logic for you.
The full reference for every API function is in the API documentation.
Example
A broker-independent API function
placeOrder("PSEUDO_ACC_ID", "NSE", "BANKNIFTY_28-MAY-2020_CE_25000", "BUY", "LIMIT", "INTRADAY", 20, 230.55, 0);
This function places an order using the parameters you pass. Nothing in it is broker-specific. A few parameters may look broker-specific, but they are not. Here is why.
How the broker-neutral parameters work
| Parameter | What it really is |
|---|---|
PSEUDO_ACC_ID | Not the id of your actual trading account. It is a dummy or pseudo account that is mapped in settings to a real trading account. To switch brokers, map it to a different trading account. |
BANKNIFTY_28-MAY-2020_CE_25000 | A broker-independent symbol, not a broker-specific one. Symbols differ across brokers, mainly for derivative contracts. The system maps this to the correct broker-specific symbol when placing the order. |
Because both the account id and the symbol are broker-independent, you can move a trading account from one broker to another without changing the pseudo account id or the symbols in your strategy code.
Read more about these two ideas in the next chapters:
Next steps
Thanks for the feedback. Still stuck? Contact support.
Last updated 20 June 2026