Example #1
0
        public Contracts.PairPrice KuCoinTickToPairPrice(KuCoinApi.NetCore.Entities.Tick tick)
        {
            var pairPrice = new Contracts.PairPrice
            {
                Pair  = tick.coinType + "-" + tick.coinTypePair,
                Price = tick.lastDealPrice
            };

            return(pairPrice);
        }
Example #2
0
        public Contracts.Ticker KuCoinTickToTicker(KuCoinApi.NetCore.Entities.Tick tick)
        {
            var ticker = new Contracts.Ticker
            {
                AskPrice           = tick.sell,
                BidPrice           = tick.buy,
                High               = tick.high,
                LastPrice          = tick.lastDealPrice,
                Low                = tick.low,
                Pair               = tick.coinType + "-" + tick.coinTypePair,
                PriceChangePercent = tick.changeRate,
                Volume             = tick.vol
            };

            return(ticker);
        }