Ejemplo n.º 1
0
        public MarketHistoryResponse GetMarketHistory(MarketHistoryRequest request)
        {
            var query = "getmarkethistory?market=" + $"{request.TradePair.PairLabel}";
            MarketHistoryResponse r = GetResult <MarketHistoryResponse>(PublicApiCall.GetMarketHistory, query);

            foreach (var c in r.Data)
            {
                c.Label = request.TradePair.PairLabel;
            }

            return(r);
        }
Ejemplo n.º 2
0
        public MarketHistoryResponse GetMarketHistory(MarketHistoryRequest request)
        {
            var query = $"/{GetTradePairLabel(request.TradePair)}";

            return(GetResult <MarketHistoryResponse>(PublicApiCall.GetMarketHistory, query));
        }