private void OnDepth(MarketDepth depth) { if (depth.Security != _security) { return; } DepthControl.UpdateDepth(depth); }
private void OnDepth(Subscription subscription, QuoteChangeMessage depth) { if (depth.SecurityId != _security.ToSecurityId()) { return; } DepthControl.UpdateDepth(depth, _security); }
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); }