Hello Team,
I am trying to use the Alice Blue API. All API features are working correctly, but when I try to place an order, I receive the following error:
{'stat': 'Not_Ok', 'emsg': 'IP restriction: You are not allowed to place the order'}
What I have already tried:
-
I am running the API from my local system.
-
I created an application in the Alice Blue A3 Developer Portal.
-
I whitelisted my system’s public IP address:
122.161.68.125. -
I have tried configuring the IP type as both Private and Public.
-
Other API features are working correctly. The issue occurs only when placing an order.
-
I contacted
api@aliceblueindia.comand received the following response:
We are not receiving the requests from the static IP address registered in the A3 Developer Portal. Instead, the requests are being received from different IP addresses, which is causing the IP restriction.
Kindly verify and correct the IP mapping/routing configuration at your end. After updating the IP configuration, please regenerate the Session ID and try placing the orders again.
If the IP restriction persists, please share the Session ID generation API logs and order placement API logs for further investigation.
I have verified the public IP address of my local system and configured the same IP in the A3 Developer Portal, but I am still receiving the IP restriction error.
Could you please help me understand why the API requests are being detected as coming from a different IP address and what configuration I need to correct?
Thank you.