Lean  $LEAN_TAG$
ISecurityDataFilter.cs
1 /*
2  * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
3  * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14 */
15 
16 using QuantConnect.Data;
17 
19 {
20  /// <summary>
21  /// Security data filter interface. Defines pattern for the user defined data filter techniques.
22  /// </summary>
23  /// <remarks>
24  /// Intended for use primarily with US equities tick data. The tick data is provided in raw
25  /// and complete format which is more information that more retail feeds provide. In order to match
26  /// retail feeds the ticks much be filtered to show only public-on market trading.
27  ///
28  /// For tradebars this filter has already been done.
29  /// </remarks>
30  public interface ISecurityDataFilter
31  {
32  /// <summary>
33  /// Filter out a tick from this security, with this new data:
34  /// </summary>
35  /// <param name="data">New data packet we're checking</param>
36  /// <param name="vehicle">Security of this filter.</param>
37  bool Filter(Security vehicle, BaseData data);
38 
39  } // End Data Filter Interface
40 
41 } // End QC Namespace