public void Update(Object sender, UpdateEventArgs e) { var newEvents = e.NewEvents; var @event = newEvents[0].Get("tick"); var tick = (StockTick)@event; Log.Debug(".update Alert for stock=" + tick.StockSymbol + " price=" + tick.Price + " initialPriceTick=" + _initialPriceTick.Price + " limt=" + _limit.LimitPct); var alert = new LimitAlert(tick, _limit, _initialPriceTick.Price); _stockTickerResultListener.Emitted(alert); }
public void Emitted(LimitAlert @object) { log.Info(".Emitted Received emitted " + @object); MatchEvents.Add(@object); }