Ejemplo n.º 1
0
        public void SubscribeOrder(string account, Stock stock)
        {
            ExecutionTicker ticker;

            if (!_executionTicker.TryGetValue(stock, out ticker))
            {
                ticker = new ExecutionTicker(account, Name, stock);
                ticker.ExecutionUpdate += ExecutionUpdated;
                ticker.OrderUpdate     += OrderUpdated;
                ticker.Execute();
                _executionTicker.Add(stock, ticker);
            }
        }
Ejemplo n.º 2
0
        public void SubscribeVenue(string account)
        {
            Stock           stock = new Stock();
            ExecutionTicker executionTicker;

            if (!_executionTicker.TryGetValue(stock, out executionTicker))
            {
                executionTicker = new ExecutionTicker(account, Name);
                executionTicker.ExecutionUpdate += ExecutionUpdated;
                executionTicker.OrderUpdate     += OrderUpdated;
                executionTicker.Execute();
            }

            StockTicker stockTicker;

            if (!_stockTicker.TryGetValue(stock, out stockTicker))
            {
                stockTicker              = new StockTicker(account, Name);
                stockTicker.QuoteUpdate += QuoteUpdated;
                stockTicker.Execute();
            }
        }