MatthiWare/FinancialModelingPrep.NET

Error on GetEnterpriseValueAsync

walterfranssen opened this issue · 0 comments

There are some error on getting the enterprise values, for example with symbol AAPL you get the data, with ticket NNN you get the following json error:

System.Text.Json.JsonException: The JSON value could not be converted to System.Int64. Path: $[2].minusCashAndCashEquivalents | LineNumber: 24 | BytePositionInLine: 43.
---> System.FormatException: Either the JSON value is not in a supported format, or is out of bounds for an Int64.
at System.Text.Json.Utf8JsonReader.GetInt64()

Maybe you can change the type of the the following properties in classes
MatthiWare.FinancialModelingPrep.Model.CompanyValuation.EnterpriseValueResponse to double:

  • AddTotalDebt
  • MinusCashAndCashEquivalents