danikhan632 / Auto-GPT-AlpacaTrader-Plugin

MIT License
108 stars 19 forks source link

Command place_trade returned: Error: {"code":40110000,"message":"request is not authorized"} #4

Open Professor-Chen opened 1 year ago

Professor-Chen commented 1 year ago

I have a problem like this

THOUGHTS: I need to analyze the market trends and news to provide insights that inform my trading decisions. REASONING: Analyzing the market trends and news is crucial for making informed trading decisions. PLAN:

danikhan632 commented 1 year ago

are env params set?

atorenherrinton commented 1 year ago

I'm getting the same error. I really don't understand this error since I've followed the instructions as provided for the .env file, and adding my API key id and secret. Also, Alpaca notified me via email that my account is fully verified. I would like to use this plugin, but it seems like a fix needs to be made. Maybe I will attempt to debug later on.

What may be pertinent is that I'm running Auto-GPT through my terminal, which I cloned from GitHub, as opposed to running the application through a docker container, though I'm not sure.

atorenherrinton commented 1 year ago

@Professor-Chen @danikhan632: I figured it out. The problem was I did not realize I have 2 accounts for Alpaca. One is a real account and another is with play money called "Paper" account. If you have APCA_IS_PAPER=True in the .env file, you will have to generate a Paper account API key on the Alpaca.

I've created a PR for the README if you think that is helpful: https://github.com/danikhan632/Auto-GPT-AlpacaTrader-Plugin/pull/5