Esempio n. 1
0
        public MarketResponse GetMarket(MarketRequest request)
        {
            string tradePairId = request.TradePair.Id.HasValue ? request.TradePair.Id.ToString() : request.TradePair.CurrencyLabel + "_" + request.TradePair.BaseLabel;
            var    query       = request.Hours.HasValue ? $"/{tradePairId}/{request.Hours}" : $"/{tradePairId}";

            return(GetResult <MarketResponse>(PublicApiCall.GetMarket, query));
        }
Esempio n. 2
0
        public MarketResponse GetMarket(MarketRequest request)
        {
            var query = "getmarketsummary?market=" + $"{request.TradePair.PairLabel}";

            return(GetResult <MarketResponse>(PublicApiCall.GetMarket, query));
        }