[Urgent] Error -50: "Order placement restricted" on AWS EC2 despite correct -200 App ID and IP Whitelisting

Hi Team,

I am facing an issue with order placement using the FYERS API v3. My setup was working correctly a week ago, but I am now consistently receiving the following error response:

{ “status”: “success”,
“data”: {
“code”: -50,
“message”: "Request rejected: Order placement restricted. Algo orders are not allowed from this app ",
“s”: “error” }
}

My Environment & Setup:

  • App ID: H492REBJZ1-200 (I am explicitly using the -200 suffix for Algo trading).
  • Infrastructure: FastAPI backend running on an AWS EC2 instance.
  • Deployment: Frontend is in React, which communicates with the FastAPI backend.
  • Library: Latest fyers-apiv3 Python SDK.

Things I have verified and tried:

  • IP Whitelisting: I have whitelisted my EC2 Public IP (52.91.222.168) in the API Dashboard. - IP Consistency: I ran curl ifconfig.me from the EC2 terminal and confirmed it matches the whitelisted IP exactly. curl -6 returns nothing, so it is a pure IPv4 setup. - FastAPI Outbound Check: I verified that the FastAPI application is indeed sending requests from the whitelisted IP. - 2FA / Authentication: I am performing a fresh daily login with TOTP to generate a new access token. - App Status: The app is marked as “Active” in the FYERS API Dashboard.
    Despite having the -200 app type and the correct Static IP whitelisted, the orders are still being rejected with the “Algo orders are not allowed” message.

@kGRGEpOlJ1

Hi @115328458095770254517, please check which IP is being passed. You can refer to the following doc to validate the IP: Static IP validation API.pdf - Zoho WorkDrive. Confirm that both the order requesting IP and the whitelisted IP are the same.

hi @kGRGEpOlJ1
thankyou for the response
here is what i got from the validate ip api
but still when i try to place an order i get error

i have attached the screenshots

Hey @115328458095770254517,

You are placing orders using old App ID credentials, hence orders are getting rejected. Please ensure new app details are updated correctly, including App ID and App type.
Please DM me if you need any further assistance.

@naresh_janagama thank you
i just looked deeper into the code and I found that I was not sending the app ID correctly
while placing the order
I have set it correctly now

Hi @115328458095770254517, hope your concern is resolved, If not just drop a message, and I’ll be happy to help you with it.

@bhanu.prakash.7imf8zk9 it is resolved thankyou