I realize that this topic is a duplicate, but the content is different.
Using the [Latest trade (single Symbol)]
import requests
url = “https://data.alpaca.markets/v2/stocks/TSLA/trades/latest?feed=sip”
headers = {
“accept”: “application/json”,
“APCA-API-KEY-ID”: “”,
“APCA-API-SECRET-KEY”: “”
}
response = requests.get(url, headers=headers)
print(response.text)
returns this:
{
“message”: “subscription does not permit querying recent SIP data”
}
Maybe the option to subscribe is right in front of me and I’m just not seeing it. How do I subscribe?