示例#1
0
        public Contracts.PairPrice KuCoinStatsToPairPrice(KuCoinApi.Net.Entities.TradingPairStats stats)
        {
            var pairPrice = new Contracts.PairPrice
            {
                Pair  = stats.Pair,
                Price = stats.Close
            };

            return(pairPrice);
        }
示例#2
0
        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);
        }