Whether I use my paper trading API Keys or the ones I got from OAuth Developer apps. Either way, the docs are unclear as to which keys I should use when trying to query simple data API. Endpoint:
Version 1 of the Data API is forbidden. Just use the version 2 endpoints. But some URL for the v2 endpoints is different. For instance, the latest trade endpoint URL in v2 looks like this:
No dice. Still says forbidden. Should I be using the keys from my paper wallet or the API keys that I created during App creation? Either way, both are giving me 403 Forbidden
I have the same thing.
v2
Was working fine a few months ago and now forbidden for both paper and live keys.
It’s one thing to have code that doesn’t work, but for the hist feed to break randomly is unacceptable especially when I pay for the unlimited plan for rt feed.
I’m not aware of any breaking changes for v2 over the last few months. Isn’t part of versioning meant to address breaking changes?
I’m getting {“message”: “forbidden.”} on the python SDK, Postman and on my own simplified python connector. I get the same error when connecting to endpoints on api.alpaca.markets/v2; data.alpaca.markets/v2; data.sandbox.alpaca.markets/v2.
I’ve refreshed my keys.
What am I doing wrong? How do you connect to Alpaca via python?
Hello - this just started happening to me. It has been working fine for the past couple weeks. I have a paid plan and am actively using the API, however if I was hitting some rate limit, I would expect a different response. Also, the forbidden response has repeated over the past hour. Wondering if Alpaca is under maintenance again. I’ve noticed the status page is not always accurate.
I would like reals customer support to look into my account or at least a way to report an incident. Any ideas?
Turns out, if you reset your paper account balance - it also deletes your API keys. I should have figured that out sooner. Anyways, that’s what happened to me. Hope it helps someone.
I’m still getting the forbidden error, ‘b’{“message”: “forbidden.”}\n’, when trying to connect to the API using regular requests or using the SDK. Not sure what is wrong… I’ve tried regenerating my API keys multiple times.
Any help is appreciated.
Here is my attempt to access the account endpoint: