public static CurrencyQuote GetCryptoQuotes(CoinMarketQuotesLatestResponseModel apiResult, string cryptoCurrencyCode, string quote)
        {
            if (apiResult.HasError)
            {
                return(InvalidResponse(quote));
            }

            return(ValidResponse(apiResult, cryptoCurrencyCode));
        }
        private static CurrencyQuote ValidResponse(CoinMarketQuotesLatestResponseModel apiResult, string cryptoCurrencyCode)
        {
            var currencyQuote = JsonSerializer.Deserialize <QuotesLatest>(apiResult.Result);

            return(new CurrencyQuote()
            {
                Code = currencyQuote.Data[cryptoCurrencyCode].Quote.First().Key,
                Value = currencyQuote.Data[cryptoCurrencyCode].Quote.First().Value.Price,
                Error = string.Empty
            });
        }