EC097 - IP Restriction Error While Placing Orders via API

Dear Alice Blue Support Team,

I am facing an issue while placing orders through the Alice Blue API.

Error Response:

{
“status”: “EC097”,
“message”: “IP restriction: You are not allowed to place the order”,
“result”: null
}

Troubleshooting already performed:

  • Successfully authenticated and generated session token.
  • Profile API is working correctly.
  • Other authenticated API calls are working.
  • Only order placement APIs are failing with EC097.
  • Confirmed that the IP is configured in the Alice Blue Developer Portal.
  • Generated a fresh session token after updating the IP whitelist.

Since authentication APIs are working and only order placement is being rejected, could you please verify whether the IP whitelist has been activated correctly for my application and account on the trading/order management backend?

Please let me know if you require any additional logs, request IDs, or screenshots.

Regards,
Pratish

Hi @pratish

We have forwarded your query to the concerned team, and they are working on it. We will get it resolved at the earliest.

Please take this on high priority. We can’t be able to place any orders over here.

Hi @pratish
Request you to please raise a support ticket with your client details and share the ticket number with us here. Once we receive the ticket reference, we’ll connect with the concerned team for a detailed review.

Hi Team,

I have raised the ticket here is the ticket number #2053575.

Hi @pratish

We have forwarded your query to the concerned team, and they are working on it. We will get it resolved at the earliest.

Hi @pratish

We have responded to the ticket you raised. Kindly check our response and follow the instructions provided.

If you are still facing any issues, please reply to the same ticket. We will review it and get back to you.

Thanks and Regards,
AliceBlue Team

Did you find solution for this, i am also having same issue:
status=REJECTED broker_id=None msg={‘stat’: ‘Not_Ok’, ‘emsg’: ‘IP restriction: You are not allowed to place the order’}

did you guys find a soluction. Me too facing the same issue. This guys doesnt have proper documentation about the resolution for the error IP restriction.

I have created a app and attached a static IP , i am running the application from local host using the proxy ( same static address) but getting error - EC097: IP restriction: You are not allowed to place the order

Dear Clients,

Greetings of the day!

As part of recent security enhancements, IP restriction has been enabled for the A3 Order Placement API.

Please ensure that the API requests are being sent from the same static IP address that has been configured in the A3 Portal. If the requests are coming from a different IP, the API will return an IP restriction error.

Additionally, if you update or change the static IP in the A3 Portal, you must generate a new session ID after the update for the changes to take effect properly.

Please verify the following:

  • The request is originating from the configured static IP.
  • A new session ID has been generated after updating the IP in the portal.

Kindly follow the above instructions and test again. If you continue to face any issues, Request you to please raise a support ticket with your client details and share the ticket number with us here. Once we receive the ticket reference, we’ll connect with the concerned team for a detailed review.

Thanks and Regards,

Alice Blue Team