コード例 #1
0
 public MarketBookParameterWriter(IList<string> marketIds, PriceProjection priceProjection, OrderProjection orderProjection, MatchProjection matchProjection)
 {
     this.marketIds = marketIds;
     this.priceProjection = priceProjection;
     this.orderProjection = orderProjection;
     this.matchProjection = matchProjection;
     this.parameterWriter = new ParameterWriter();
 }
コード例 #2
0
        public IList<MarketBook> ListMarketBook(string marketId)
        {
            var price = new PriceProjection
            {
                PriceData = new HashSet<PriceData> { PriceData.EX_BEST_OFFERS }
            };

            IList<MarketBook> book = null;
            try
            {
                book = this.client.ListMarketBook(new List<string> { marketId }, price, OrderProjection.EXECUTABLE, MatchProjection.ROLLED_UP_BY_AVG_PRICE);
            }
            catch (System.Net.WebException)
            {
                Console.WriteLine("Bad Request error");
            }

            return book;
        }