コード例 #1
0
        public override List <BcwTrade> GetPublicTrades(BcwMarket market, long sinceTid = -1)
        {
            string query;

            if (sinceTid == -1)
            {
                query = RestHelpers.BuildGetArgs("symbol", market.ToString());
            }
            else
            {
                query = RestHelpers.BuildGetArgs("symbol", market.ToString(), "since", sinceTid);
            }
            var request = new SynchronousJsonWebRequest <List <BcwTrade> >("https://s2.bitcoinwisdom.com/trades", null,
                                                                           Huobi.kGet, query, 10, Huobi.kRetryCount);

            return(request.Send());
        }
コード例 #2
0
        /// <summary>
        /// </summary>
        /// <param name="market"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        public BcwMarketDepth GetDepth(BcwMarket market)
        {
            var request = new SynchronousJsonWebRequest <BcwMarketDepthResult>("https://s2.bitcoinwisdom.com/depth", null,
                                                                               Huobi.kGet, RestHelpers.BuildGetArgs("symbol", market.ToString()), 10, Huobi.kRetryCount);

            return(request.Send().@return);
        }