Ejemplo n.º 1
0
        protected override bool MatchItem(EmTradeFeedItem trade, out int id)
        {
            if (trade == null)
            {
                throw new ArgumentNullException(nameof(trade));
            }

            id = trade.SourceAccountid;

            return(UvarAccounts.ContainsKey(id));
        }
        protected override bool MatchItem(DeltaOneTradeFeedItem trade, out int id)
        {
            if (trade == null)
            {
                throw new ArgumentNullException(nameof(trade));
            }

            id = trade.Counterpartyid + trade.PrincipalId;

            return(UvarAccounts.ContainsKey(id));
        }