-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7d87281
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you @vslee !!!
7d87281
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @vslee , after upgrading to version 2.4.0, I am still getting an exception when I make this call: IEXCloudClient.StockResearch.AdvancedStatsAsync("AACG")
Here is the stacktrace:
System.Text.Json.JsonException: {"week52change":-0.28,"week52high":1.92,"week52low":0.61,"marketcap":34277477,"employees":768,"day200MovingAvg":1.09,"day50MovingAvg":1.13,"float":null,"avg10Volume":41015.4,"avg30Volume":33503.33,"ttmEPS":-0.737,"ttmDividendRate":null,"companyName":"ATA Creativity Global","sharesOutstanding":31738405,"month1ChangePercent":0,"month3ChangePercent":-0.268456,"month6ChangePercent":0.282353,"ytdChangePercent":-0.192593,"year1ChangePercent":-0.273333,"day5ChangePercent":-0.009091,"day30ChangePercent":0.028302,"maxChangePercent":-0.8754,"year5ChangePercent":-0.6484,"year2ChangePercent":0.0686,"nextDividendDate":null,"dividendYield":null,"nextEarningsDate":null,"exDividendDate":"2018-08-27","peRatio":-1.47,"beta":0.1280325782062981,"totalCash":22136721,"currentDebt":3667545,"revenue":14149381,"grossProfit":2948032,"totalRevenue":14149381,"EBITDA":-13350800,"revenuePerShare":0.45,"revenuePerEmployee":18423.67,"debtToEquity":0.13,"profitMargin":-1.3619356917451018,"enterpriseValue":17920209.450000003,"enterpriseValueToRevenue":1.27,"priceToSales":2.44,"priceToBook":0.7955173106676837,"forwardPERatio":null,"pegRatio":null,"week52highDate":"2019-10-15","week52lowDate":"2020-04-27","peHigh":-6.438178397899544,"peLow":-2.0454629284993344,"putCallRatio":null} ---> System.Text.Json.JsonException: The JSON value could not be converted to System.Int64. Path: $.float | LineNumber: 0 | BytePositionInLine: 151. ---> System.InvalidOperationException: Cannot get the value of a token type 'Null' as a number. at System.Text.Json.Utf8JsonReader.TryGetInt64(Int64& value) at System.Text.Json.Utf8JsonReader.GetInt64() at System.Text.Json.Serialization.Converters.JsonConverterInt64.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.JsonPropertyInfoNotNullable`4.OnRead(ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.JsonPropertyInfo.Read(JsonTokenType tokenType, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.JsonSerializer.HandleNull(Utf8JsonReader& reader, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack) --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& readStack, Utf8JsonReader& reader, Exception ex) at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack) at System.Text.Json.JsonSerializer.ReadCore(Type returnType, JsonSerializerOptions options, Utf8JsonReader& reader) at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options) at IEXSharp.Helper.ExecutorREST.ExecuteAsync[ReturnType](String urlPattern, NameValueCollection pathNVC, QueryStringBuilder qsb, Boolean forceUseSecretToken) --- End of inner exception stack trace --- at IEXSharp.Helper.ExecutorREST.ExecuteAsync[ReturnType](String urlPattern, NameValueCollection pathNVC, QueryStringBuilder qsb, Boolean forceUseSecretToken) at IEXSharp.Helper.ExecutorREST.SymbolExecuteAsync[ReturnType](String urlPattern, String symbol) at IEXSharp.Service.Cloud.CoreData.StockResearch.StockResearchService.AdvancedStatsAsync(String symbol)