It was working yesterday and I don’t think I changed anything. I’m on Windows 10 using the Python Alpaca trade API. Does anyone know if it’s just down or if there’s an issue on my end? I checked the Alpaca status page and everything was showing green. Thanks in advance!
Here’s the full error:
Exception has occurred: HTTPError
404 Client Error: Not Found for url: https://data.alpaca.markets/v1/v2/assets?status=active
File “C:\git\AlpacaStockTrader\alpacaExamples\ex03_GetListOfAssets.py”, line 14, in
active_assets = api.list_assets(status=‘active’)
I’m getting this error when running example 3 from the api how-tos
#Example 03 - Get a List of Assets
#https://alpaca.markets/docs/api-documentation/how-to/assets/
#Connect to the Alpaca API and print a list of assets (stocks) that are part of
#the NASDAQ
import alpaca_trade_api as tradeapi
api = tradeapi.REST()
# Get a list of all active assets.
active_assets = api.list_assets(status='active')
# Filter the assets down to just those on NASDAQ.
nasdaq_assets = [a for a in active_assets if a.exchange == 'NASDAQ']
print(nasdaq_assets)