コード例 #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));
        }
コード例 #2
0
        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));
        }