/// <summary> /// <p>Cancel an order. Post a <a onclick="dojo.hash('#type.CancelOrderRequestDTO'); return false;" class="json-link" href="#">CancelOrderRequestDTO</a> to the uri specified below</p> /// </summary> /// <param name="cancelOrder">The cancel order request</param> /// <param name="callback"></param> /// <param name="state"></param> public void BeginCancelOrder(CancelOrderRequestDTO cancelOrder, ApiAsyncCallback<ApiTradeOrderResponseDTO> callback, object state) { BeginRequest(callback, state, "order", "/cancel", "POST", new Dictionary<string, object> { { "cancelOrder", cancelOrder} }, TimeSpan.FromMilliseconds(0), "default"); }
/// <summary> /// Cancel an order. /// </summary> /// <param name="cancelOrder">The cancel order request.</param> /// <param name="callback"></param> /// <param name="state"></param> public virtual void BeginCancelOrder(CancelOrderRequestDTO cancelOrder, ReliableAsyncCallback callback, object state) { string uriTemplate = "/cancel"; _client.BeginRequest(RequestMethod.POST, "order", uriTemplate , new Dictionary<string, object> { { "cancelOrder", cancelOrder} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0), 30000,0 ,callback, state); }
// *********************************** // CancelOrder // *********************************** /// <summary> /// Cancel an order. /// </summary> /// <param name="cancelOrder">The cancel order request.</param> public virtual ApiTradeOrderResponseDTO CancelOrder(CancelOrderRequestDTO cancelOrder) { string uriTemplate = "/cancel"; return _client.Request<ApiTradeOrderResponseDTO>(RequestMethod.POST,"order", uriTemplate , new Dictionary<string, object> { { "cancelOrder", cancelOrder} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0),30000,0 ); }
// *********************************** // CancelOrder // *********************************** /// <summary> /// <p>Cancel an order. Post a <a onclick="dojo.hash('#type.CancelOrderRequestDTO'); return false;" class="json-link" href="#">CancelOrderRequestDTO</a> to the uri specified below</p> /// </summary> /// <param name="cancelOrder">The cancel order request</param> public ApiTradeOrderResponseDTO CancelOrder(CancelOrderRequestDTO cancelOrder) { return Request<ApiTradeOrderResponseDTO>("order", "/cancel", "POST", new Dictionary<string, object> { { "cancelOrder", cancelOrder} }, TimeSpan.FromMilliseconds(0), "default"); }
public void CanCancelOrder() { var order = new CancelOrderRequestDTO(); var response = _rpcClient.TradesAndOrders.CancelOrder(order); }
public void CanCancelOrder() { var rpcClient = BuildRpcClient(); AccountInformationResponseDTO accounts = rpcClient.AccountInformation.GetClientAndTradingAccount(); CancelOrderRequestDTO order = new CancelOrderRequestDTO(); var response = rpcClient.TradesAndOrders.CancelOrder(order); }