Hey all. Anyone experiencing this error with crypto assets? This example is straight from the documentation and it is no longer working. It was working a few days ago
from alpaca.trading.client import TradingClient
from alpaca.trading.requests import GetAssetsRequest
from alpaca.trading.enums import AssetClass
from dotenv import load_dotenv
import os
load_dotenv()
API_KEY = os.getenv("APCA_API_KEY_ID", "")
SECRET_KEY = os.getenv("APCA_API_SECRET_KEY", "")
trading_client = TradingClient(API_KEY, SECRET_KEY, paper=True)
# search for crypto assets
search_params = GetAssetsRequest(asset_class=AssetClass.CRYPTO)
assets = trading_client.get_all_assets(search_params)
Which give error:
ValidationError: 46 validation errors for ParsingModel[List[alpaca.trading.models.Asset]]
__root__ -> 0 -> exchange
value is not a valid enumeration member; permitted: 'AMEX', 'ARCA', 'BATS', 'NYSE', 'NASDAQ', 'NYSEARCA', 'FTXU', 'CBSE', 'GNSS', 'ERSX', 'OTC' (type=type_error.enum; enum_values=[, , , , , , , , , , ])
DOCS: Trading - Alpaca-py