[BUG]: ListAssetsAsync Error converting value "options_enabled" to type 'Alpaca.Markets.AssetAttributes'.
homer14 opened this issue · 2 comments
homer14 commented
Is there an existing issue for this?
NOTE: This may be related to issues #714 and #716.
Current Behavior
When I grabbed active assets a week or so ago, it seemed this error appeared 10 times or so. [EDIT] Now it appears too many times to count.
Newtonsoft.Json.JsonSerializationException: 'Error converting value "options_enabled" to type 'Alpaca.Markets.AssetAttributes'. Path '[736].attributes[0]', line 1, position 237521.'
Expected Behavior
no errors grabbing assets.
Steps To Reproduce
IAlpacaTradingClient alpacaClient = global::Alpaca.Markets.Environments.Live.GetAlpacaTradingClient(new SecretKey(Common.ALPACA_KEY_ID, Common.ALPACA_SECRET_KEY));
IReadOnlyList<IAsset> activeAssets = await alpacaClient.ListAssetsAsync(new AssetsRequest { AssetStatus = AssetStatus.Active });
Environment
- SDK Version: 7
- OS (version, bitness): Win 10 64bit
- .NET SDK (version): 7
Anything else?
i like toitles, go lions!
OlegRa commented