I’m trying to use the example Create an Order page in the Alpaca docs and when I paste in my keys it says that my credentials cannot be authorized. I’ve tried regenerating my keys multiple times but to no avail.
@AHOY_MATEY Could you paste the code you are using and the exact wording of the error (perhaps with the error code) I can then check a few things.
@AHOY_MATEY It appears you are using the wrong API key (and presumably the wrong secret key). You should be using the keys from the paper account you wish to trade. All paper account keys begin with “PK”.
Go to your paper account. In the lower right of the home page you will see your API Key. If you forgot your Secret Key you will need to regenerate a new pair. The Secret Key only shows up once after you regenerate it, so ensure you copy it someplace.
The request should go through without an error with the correct keys.
Thank you for the screenshot btw. That helps a lot in troubleshooting.
Thank you very much!