jabacrack / YahooFinanceApiNext

A handy Yahoo! Finance api wrapper, based on .NET Standard 2.0
MIT License
3 stars 0 forks source link

QuerySummaryAsync throw KeyNotFoundException #7

Closed jabacrack closed 3 days ago

jabacrack commented 3 days ago

Code

await YahooFinanceApi.Yahoo.QuerySummaryAsync("^SPX", default, SummaryModules.AssetProfile, SummaryModules.QuoteType);

throw next exception:

System.Collections.Generic.KeyNotFoundException: The specified key 'assetProfile' does not exist in the ExpandoObject.
   at System.Dynamic.ExpandoObject.System.Collections.Generic.IDictionary<System.String,System.Object>.get_Item(String key)
   at YahooFinanceApi.Yahoo.QuerySummaryAsync(String symbol, CancellationToken token, String[] modules)