private MarketSummaryDto?CreateMarketSummaryDto(FunFairWalletPriceResultPairDto pkt, ICoinBuilder builder) { // always look at the quoted currency first as if that does not exist, then no point creating doing any more Currency?marketCurrency = builder.Get(pkt.FiatCurrencySymbol); if (marketCurrency == null) { return(null); } Currency?baseCurrency = builder.Get(pkt.TokenSymbol); if (baseCurrency == null) { return(null); } return(new MarketSummaryDto(market: this.Name, baseCurrency: baseCurrency, marketCurrency: marketCurrency, volume: 0m, last: pkt.Price, lastUpdated: pkt.LastUpdated)); }
private ICoinInfo CreateCoinInfo(FunFairWalletPriceResultPairDto item) { return(new FunFairWalletCoin(priceUsd: item.Price, symbol: item.TokenSymbol, lastUpdated: item.LastUpdated)); }