public static string ToJson(this HistoricalPrice self) => JsonConvert.SerializeObject(self, EODHistoricalData.NET.ConverterHistoricalPrice.Settings);
Пример #2
0
 List <HistoricalPrice> GetHistoricalPricesFromResponse(HttpResponseMessage response)
 {
     return(HistoricalPrice.GetListFromJson(response.Content.ReadAsStringAsync().Result) ?? new List <HistoricalPrice>());
 }
 private async Task <List <HistoricalPrice> > GetHistoricalPricesFromResponseAsync(HttpResponseMessage response)
 {
     return(HistoricalPrice.GetListFromJson(await response.Content.ReadAsStringAsync()) ?? new List <HistoricalPrice>());
 }