コード例 #1
0
        private void OnDepth(MarketDepth depth)
        {
            if (depth.Security != _security)
            {
                return;
            }

            DepthControl.UpdateDepth(depth);
        }
コード例 #2
0
        private void OnDepth(Subscription subscription, QuoteChangeMessage depth)
        {
            if (depth.SecurityId != _security.ToSecurityId())
            {
                return;
            }

            DepthControl.UpdateDepth(depth, _security);
        }
コード例 #3
0
        private void OnDepths(IEnumerable <MarketDepth> depths)
        {
            if (_security == null)
            {
                return;
            }

            var depth = depths.FirstOrDefault(d => d.Security == _security);

            if (depth == null)
            {
                return;
            }

            DepthControl.UpdateDepth(depth);
        }