Example #1
0
 public async void CancelOrder(string orderId)
 {
     try
     {
         if (!_exchangeApi.Simulated)
         {
             await _exchangeApi.CancelOrderAsync(orderId);
         }
     }
     catch (Exception e)
     {
         _logger.Error(e);
     }
 }
Example #2
0
        public async Task <string> CancelOrderAsync(User user, string symbol, long orderId, string newClientOrderId = null, long recWindow = 0, CancellationToken cancellationToken = default(CancellationToken))
        {
            var result = await exchangeApi.CancelOrderAsync(user, symbol, orderId, newClientOrderId, recWindow, cancellationToken).ConfigureAwait(false);

            return(result);
        }