Example #1
0
        public List <OrderBook> GetOrderBook()
        {
            var request = new PublicBaseRequest <OrderBook>()
            {
                Function = "getorderbook"
            };

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

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

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

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

            return(request.GetResponse().result);
        }
Example #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);
        }