Lean
$LEAN_TAG$
MockDataFeed.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
.
UniverseSelection
;
17
using
QuantConnect
.
Interfaces
;
18
using
QuantConnect
.
Lean
.
Engine
.
DataFeeds
;
19
using
QuantConnect
.
Lean
.
Engine
.
Results
;
20
using
QuantConnect
.
Packets
;
21
22
namespace
QuantConnect.Report
23
{
24
/// <summary>
25
/// Fake IDataFeed
26
/// </summary>
27
public
class
MockDataFeed
:
IDataFeed
28
{
29
/// <summary>
30
/// Bool if the feed is active
31
/// </summary>
32
public
bool
IsActive
{
get
; }
33
34
/// <summary>
35
/// Initialize the data feed
36
/// This implementation does nothing
37
/// </summary>
38
public
void
Initialize
(
39
IAlgorithm
algorithm,
40
AlgorithmNodePacket
job,
41
IResultHandler
resultHandler,
42
IMapFileProvider
mapFileProvider,
43
IFactorFileProvider
factorFileProvider,
44
IDataProvider
dataProvider,
45
IDataFeedSubscriptionManager
subscriptionManager,
46
IDataFeedTimeProvider
dataFeedTimeProvider,
47
IDataChannelProvider
dataChannelProvider
48
)
49
{
50
}
51
52
/// <summary>
53
/// Create Subscription
54
/// </summary>
55
/// <param name="request">Subscription request to use</param>
56
/// <returns>Always null</returns>
57
public
Subscription
CreateSubscription
(
SubscriptionRequest
request)
58
{
59
return
null
;
60
}
61
62
/// <summary>
63
/// Remove Subscription; Not implemented
64
/// </summary>
65
/// <param name="subscription">Subscription to remove</param>
66
public
void
RemoveSubscription
(
Subscription
subscription)
67
{
68
}
69
70
/// <summary>
71
/// DataFeed Exit
72
/// </summary>
73
public
void
Exit
()
74
{
75
}
76
}
77
}
Report
PortfolioLooper
MockDataFeed.cs
Generated by
1.8.17