Exchange Approval for Algo Orders Through API: What’s Required

Even after putting a lot of effort into creating a perfect script to find and place a breakout trade with the correct stop loss, placing an order may fail. When sending orders with code, there are many regulations required by the exchanges. To place an automated order, you must comply with a number of conditions.

The Regulatory Wall and Exchange Tagging

Webhooks to avoid broker conditions are no longer possible. Every automated order must be labeled. When calling an algorithmic trading API, the data sent to the broker must include a unique algorithmic trading API assigned by the exchange. Therefore, you cannot directly interact with the exchange servers. Instead, you must send orders via a SEBI-registered broker. If you do not format your code in this way, your order is instantly rejected. This allows regulators to trace back exactly what algorithm caused a particular action in the market.

The Static IP Requirement

Your automated orders must be sent from a static IP. You must provide the broker with both main and backup IP addresses. Sending any orders from a dynamic IP address that is not registered with the broker will result in an instant rejection.

Further to this, you cannot change the IP address too frequently. In most cases, you can only change your IP once every 7 days. Therefore, you need to have a stable server infrastructure. You cannot run your bot from a laptop on public Wifi. You should have a dedicated Virtual Private Server with a static IP.

The Speed Limit and the Cost Factor

Retail API orders have a maximum speed of 10 orders per second. If your script is trying to place a high volume of orders in a very volatile period of time, any orders in excess of 10 per second will be limited or rejected. This is extremely important in future and options trading, as trades can be profitable or unprofitable based on milliseconds.

Many brokers charge a significant monthly fee to gain access to their API. On top of this, some charge further costs for real-time market data. However, several modern platforms allow free access to their API once you reach a certain volume (Pro Desk). As a retail trader, not paying for a monthly API fee makes a big difference in the profitability of a high-frequency trading system.

The Pre-Flight Checklist

Ensure you have an active trading account. Ensure API access has been enabled by your broker. Register your application so that you can get unique details. Add your fixed IP addresses. Generate a valid access token. Be aware of the token expiring, and implement handling for this in your script. Finally, check that your script only places 10 orders per second, and that the instrument tickers match exactly to those in the daily master file.

The Bottom Line

While creating an automated trading system can be difficult, ensuring it is compliant with exchanges can also be challenging. Do not attempt to bypass the fixed IP address and labeling requirements. Ensure your infrastructure adheres to the limits. Ensure your API keys are safe. Choose a platform that does not incur hidden costs from API usage.

Skills