/// <remarks/> public void getMarketPricesCompressedAsync(GetMarketPricesCompressedReq request, object userState) { if ((this.getMarketPricesCompressedOperationCompleted == null)) { this.getMarketPricesCompressedOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetMarketPricesCompressedOperationCompleted); } this.InvokeAsync("getMarketPricesCompressed", new object[] { request}, this.getMarketPricesCompressedOperationCompleted, userState); }
public GetMarketPricesCompressedResp getMarketPricesCompressed(GetMarketPricesCompressedReq request) { object[] results = this.Invoke("getMarketPricesCompressed", new object[] { request}); return ((GetMarketPricesCompressedResp)(results[0])); }
/// <remarks/> public void getMarketPricesCompressedAsync(GetMarketPricesCompressedReq request) { this.getMarketPricesCompressedAsync(request, null); }
/// <summary> /// The API GetMarketPricesCompressed service allows you to /// retrieve dynamic market data for a given Market ID in a /// compressed format. This service returns the same information /// as the Get Market Prices service but returns it in a ~ (tilde) /// delimited String. /// </summary> /// <param name="exchangeId"></param> /// <param name="marketId"></param> /// <returns></returns> public string GetMarketPricesCompressed(int exchangeId, int marketId) { const string serviceName = "GetMarketPricesCompressed"; Console.WriteLine("{0}$ API_SERVICE {1}", DateTime.Now, serviceName); var request = new GetMarketPricesCompressedReq { currencyCode = _currency, marketId = marketId, header = ((BetfairExchangeAPI.APIRequestHeader) GetHeader(false)) }; GetMarketPricesCompressedResp response = _bfExchangeService[exchangeId].getMarketPricesCompressed(request); ValidateAPIResponse(serviceName, Convert.ToString(response.header.errorCode), Convert.ToString(response.errorCode), response.header.sessionToken); return response.marketPrices; }