コード例 #1
0
ファイル: Trader.cs プロジェクト: TonyCasey/cryptobot
 public async void CancelOrder(string orderId)
 {
     try
     {
         if (!_exchangeApi.Simulated)
         {
             await _exchangeApi.CancelOrderAsync(orderId);
         }
     }
     catch (Exception e)
     {
         _logger.Error(e);
     }
 }
コード例 #2
0
ファイル: ExchangeService.cs プロジェクト: lulzzz/tradeview
        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);
        }