Skip to main content
Question

Alpaca: Error during execution: HTTP Status 422: account is not allowed to trade

  • February 12, 2025
  • 1 reply
  • 29 views

Hi everybody.

 

I tried building an agent today that would automatically place trades on alpaca. everything seemed to work in the agent until it gives me this messagen when it reaches the trading step:

Error during execution: HTTP Status 422: account is not allowed to trade

Does anybody know what this means and why I get this?
The video I followed to get to where I am now didn’t get this message, and I don’t know what to do.

 

Thanks in advance.

 

Tom

Did this topic help you find an answer to your question?

1 reply

JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2312 replies
  • February 13, 2025

Hi ​@Tom Langeveld,

 

Welcome to the Community.

 

The "HTTP Status 422: account isn't allowed to trade" error you're seeing is from Alpaca's API, indicating issues with your account's trading permissions. Check if your Alpaca account is fully approved, confirm you're using the correct API keys for either paper or live trading, and ensure there are no account restrictions, such as a hold on funds. If the issue persists, contact Alpaca's support team for more details on your account status.

 

I hope this information helps you. Please let me know if you have any other questions.