/// <remarks/> public void getMarketTradedVolumeCompressedAsync(GetMarketTradedVolumeCompressedReq request, object userState) { if ((this.getMarketTradedVolumeCompressedOperationCompleted == null)) { this.getMarketTradedVolumeCompressedOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetMarketTradedVolumeCompressedOperationCompleted); } this.InvokeAsync("getMarketTradedVolumeCompressed", new object[] { request}, this.getMarketTradedVolumeCompressedOperationCompleted, userState); }
public GetMarketTradedVolumeCompressedResp getMarketTradedVolumeCompressed(GetMarketTradedVolumeCompressedReq request) { object[] results = this.Invoke("getMarketTradedVolumeCompressed", new object[] { request}); return ((GetMarketTradedVolumeCompressedResp)(results[0])); }
/// <remarks/> public void getMarketTradedVolumeCompressedAsync(GetMarketTradedVolumeCompressedReq request) { this.getMarketTradedVolumeCompressedAsync(request, null); }
/// <summary> /// The API GetMarketTradedVolumeCompressed service allows /// you to obtain the current price (odds) and matched /// amounts at each price on all of the runners in a /// particular market. /// </summary> /// <param name="exchangeId"></param> /// <param name="marketId"></param> /// <returns></returns> public string GetMarketTradedVolumeCompressed(int exchangeId, int marketId) { const string serviceName = "GetCompleteMarketTradedVolume"; Console.WriteLine("{0}$ API_SERVICE {1}", DateTime.Now, serviceName); var request = new GetMarketTradedVolumeCompressedReq { currencyCode = _currency, marketId = marketId, header = ((BetfairExchangeAPI.APIRequestHeader) GetHeader(false)) }; GetMarketTradedVolumeCompressedResp response = _bfExchangeService[exchangeId].getMarketTradedVolumeCompressed(request); ValidateAPIResponse(serviceName, Convert.ToString(response.header.errorCode), Convert.ToString(response.errorCode), response.header.sessionToken); return response.tradedVolume; }