Ejemplo n.º 1
0
        public List <OrderBook> GetOrderBook()
        {
            var request = new PublicBaseRequest <OrderBook>()
            {
                Function = "getorderbook"
            };

            return(request.GetResponse().result);
        }
Ejemplo n.º 2
0
        public List <MarketSummary> GetMarketSummaries()
        {
            var request = new PublicBaseRequest <MarketSummary>()
            {
                Function = "getmarketsummaries"
            };

            return(request.GetResponse().result);
        }
Ejemplo n.º 3
0
        public List <CurrencyModel> GetCurrencies()
        {
            var request = new PublicBaseRequest <CurrencyModel>()
            {
                Function = "getcurrencies"
            };

            return(request.GetResponse().result);
        }
Ejemplo n.º 4
0
        public List <MarketSummary> GetMarketSummary(Dictionary <string, string> RequestParams)
        {
            var request = new PublicBaseRequest <MarketSummary>()
            {
                Function = "getmarketsummary",
                Params   = RequestParams
            };

            return(request.GetResponse().result);
        }
Ejemplo n.º 5
0
        public List <Candle> GetCandles(Dictionary <string, string> RequestParams)
        {
            var request = new PublicBaseRequest <Candle>()
            {
                Function = "getcandles",
                Params   = RequestParams
            };

            return(request.GetResponse().result);
        }
Ejemplo n.º 6
0
        public List <Ticker> GetTicker(List <string> RequestParams)
        {
            var marketValue = string.Empty;

            RequestParams.ForEach(x =>
            {
                marketValue = string.Format("{0}{1}", marketValue, x);

                if (x != RequestParams.Last())
                {
                    marketValue = string.Format("{0},", marketValue);
                }
            });

            var request = new PublicBaseRequest <Ticker>()
            {
                Function = string.Format("getticker?market={0}", marketValue)
            };

            return(request.GetResponse().result);
        }