예제 #1
0
 /// <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");
 }
예제 #2
0
파일: Routes.cs 프로젝트: Domer79/CIAPI.CS
 /// <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);
 }
예제 #3
0
파일: Routes.cs 프로젝트: Domer79/CIAPI.CS
        // ***********************************
        // 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 );
        }
예제 #4
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");
 }
예제 #5
0
 public void CanCancelOrder()
 {
     var order = new CancelOrderRequestDTO();
     var response = _rpcClient.TradesAndOrders.CancelOrder(order);
 }
예제 #6
0
        public void CanCancelOrder()
        {
            var rpcClient = BuildRpcClient();

            AccountInformationResponseDTO accounts = rpcClient.AccountInformation.GetClientAndTradingAccount();
            CancelOrderRequestDTO order = new CancelOrderRequestDTO();
            var response = rpcClient.TradesAndOrders.CancelOrder(order);
        }