One needs to call the entire URL and not just the base URL (ie https://data.alpaca.markets/v1 and https://data.alpaca.markets/v2 won’t work). Maybe you have already tried and the above was just an example? The following will work to get the latest trades for AAPL (note you need to include your own API key and Secret key as headers)
GET https://data.alpaca.markets/v2/stocks/AAPL/trades/latest
APCA-API-KEY-ID: XXXXXXX
APCA-API-SECRET-KEY: XXXXXXX
Hi Dan,
Can you help me understand that when I put what you have outlined in your May 13, 2021 post in Postman with both paper and live keys I get {‘message’: ‘forbidden.’} for both.
This was working in July 2021 but not in November 2021.
Has something changed?
If so, what changed and is there a resolution?