Lean
$LEAN_TAG$
DataQueue.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
System;
17
using
System.Collections.Generic;
18
using
QuantConnect
.
Data
;
19
using
QuantConnect
.
Interfaces
;
20
using
QuantConnect
.
Packets
;
21
22
namespace
QuantConnect.Lean.Engine.DataFeeds.Queues
23
{
24
/// <summary>
25
/// Live Data Queue is the cut out implementation of how to bind a custom live data source
26
/// </summary>
27
public
class
LiveDataQueue
:
IDataQueueHandler
28
{
29
/// <summary>
30
/// Desktop/Local doesn't support live data from this handler
31
/// </summary>
32
public
IEnumerator<BaseData>
Subscribe
(
SubscriptionDataConfig
dataConfig, EventHandler newDataAvailableHandler)
33
{
34
throw
new
NotImplementedException(
"QuantConnect.Queues.LiveDataQueue has not implemented live data."
);
35
}
36
37
/// <summary>
38
/// Desktop/Local doesn't support live data from this handler
39
/// </summary>
40
public
virtual
void
Unsubscribe
(
SubscriptionDataConfig
dataConfig)
41
{
42
throw
new
NotImplementedException(
"QuantConnect.Queues.LiveDataQueue has not implemented live data."
);
43
}
44
45
/// <summary>
46
/// Sets the job we're subscribing for
47
/// </summary>
48
/// <param name="job">Job we're subscribing for</param>
49
public
void
SetJob
(
LiveNodePacket
job)
50
{
51
}
52
53
/// <summary>
54
/// Returns whether the data provider is connected
55
/// </summary>
56
/// <returns>true if the data provider is connected</returns>
57
public
bool
IsConnected
=>
false
;
58
59
/// <summary>
60
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
61
/// </summary>
62
public
void
Dispose
()
63
{
64
}
65
}
66
}
Engine
DataFeeds
Queues
DataQueue.cs
Generated by
1.8.17