Esempio n. 1
0
 /// <remarks/>
 public void getCompleteMarketPricesCompressedAsync(GetCompleteMarketPricesCompressedReq request, object userState) {
     if ((this.getCompleteMarketPricesCompressedOperationCompleted == null)) {
         this.getCompleteMarketPricesCompressedOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetCompleteMarketPricesCompressedOperationCompleted);
     }
     this.InvokeAsync("getCompleteMarketPricesCompressed", new object[] {
                 request}, this.getCompleteMarketPricesCompressedOperationCompleted, userState);
 }
Esempio n. 2
0
 public GetCompleteMarketPricesCompressedResp getCompleteMarketPricesCompressed(GetCompleteMarketPricesCompressedReq request) {
     object[] results = this.Invoke("getCompleteMarketPricesCompressed", new object[] {
                 request});
     return ((GetCompleteMarketPricesCompressedResp)(results[0]));
 }
Esempio n. 3
0
 /// <remarks/>
 public void getCompleteMarketPricesCompressedAsync(GetCompleteMarketPricesCompressedReq request) {
     this.getCompleteMarketPricesCompressedAsync(request, null);
 }
Esempio n. 4
0
        /// <summary>
        /// The API GetCompleteMarketPricesCompressed service allows you to
        /// retrieve all back and lay stakes for each price on the exchange
        /// for a given Market ID in a compressed format. The information
        /// returned is similar to the GetDetailAvailableMarketDepth,
        /// except it returns the data for an entire market, rather than
        /// just one selection.
        /// </summary>
        /// <param name="exchangeId">The exchange id.</param>
        /// <param name="marketId">The market id.</param>
        /// <param name="status">The status.</param>
        /// <returns></returns>
        public string GetCompleteMarketPricesCompressed(int exchangeId, int marketId, MarketStatus status)
        {
            const string serviceName = "GetCompleteMarketPricesCompressed";
            Console.WriteLine("{0}$ API_SERVICE {1}", DateTime.Now, serviceName);

            var request = new GetCompleteMarketPricesCompressedReq
                              {
                                  currencyCode = _currency,
                                  marketId = marketId,
                                  header = ((BetfairExchangeAPI.APIRequestHeader) GetHeader(false))
                              };

            GetCompleteMarketPricesCompressedResp response =
                _bfExchangeService[exchangeId].getCompleteMarketPricesCompressed(request);
            ValidateAPIResponse(serviceName, Convert.ToString(response.header.errorCode),
                                Convert.ToString(response.errorCode), response.header.sessionToken);

            return response.completeMarketPrices;
        }