public Contracts.PairPrice KuCoinStatsToPairPrice(KuCoinApi.Net.Entities.TradingPairStats stats) { var pairPrice = new Contracts.PairPrice { Pair = stats.Pair, Price = stats.Close }; return(pairPrice); }
public Contracts.Ticker KuCoinTickToTicker(KuCoinApi.Net.Entities.Ticker tick, KuCoinApi.Net.Entities.TradingPairStats stats) { var ticker = new Contracts.Ticker { AskPrice = tick.BestAsk, BidPrice = tick.BestBid, High = stats.High, LastPrice = tick.Price, Low = stats.Low, Pair = stats.Pair, PriceChangePercent = stats.ChangeRate, Volume = stats.Volume }; return(ticker); }