Esempio n. 1
0
        private void MakeOrderActive(Order order)
        {
            order.OpenDate = DateTime.UtcNow;
            order.Status   = OrderStatus.Active;

            var account = _accountsCacheService.Get(order.ClientId, order.AccountId);

            _swapCommissionService.SetCommissionRates(account.TradingConditionId, account.BaseAssetId, order);
            _ordersCache.ActiveOrders.Add(order);
            _orderActivatedEventChannel.SendEvent(this, new OrderActivatedEventArgs(order));
        }