Closed msugas19 closed 11 months ago
One last piece of context, this is client is instantiated with api = TradingClient(API_KEY, SECRET_KEY, paper=True)
+1, Just started getting this today
@msugas19 @0xDub thanks for reporting this, I'm looking into it and I'm trying to reproduce it, could you please specify what alpaca-py and pydantic versions are you using?
I investigated and this was not related to the SDK but it was a manual error that happened some time ago when we updated some assets to Inactive
instead of inactive
. It was fixed already.
Is there an existing issue for this?
Current Behavior
When I use the Asset model (alpaca.trading.models.Asset) to list available symbols for trading I get validation errors from pydantic for 10 assets. The trace looks like this
Expected Behavior
When I use the trading api to call
api.get_all_assets()
it should successfully unmarshal into Alpaca's Asset model without pydantic validation issuesSDK Version I encountered this issue in
Latest alpaca-py. Fresh install of latest in a Docker container shows this across multiple devices
Steps To Reproduce
Filled out the Steps to Reproduce section?
Anything else?
No response