Lean
$LEAN_TAG$
IDataQueueHandler.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
17
using
System;
18
using
System.Collections.Generic;
19
using
System.ComponentModel.Composition;
20
using
QuantConnect
.
Data
;
21
using
QuantConnect
.
Packets
;
22
23
namespace
QuantConnect.Interfaces
24
{
25
/// <summary>
26
/// Task requestor interface with cloud system
27
/// </summary>
28
[InheritedExport(typeof(IDataQueueHandler))]
29
public
interface
IDataQueueHandler
: IDisposable
30
{
31
/// <summary>
32
/// Subscribe to the specified configuration
33
/// </summary>
34
/// <param name="dataConfig">defines the parameters to subscribe to a data feed</param>
35
/// <param name="newDataAvailableHandler">handler to be fired on new data available</param>
36
/// <returns>The new enumerator for this subscription request</returns>
37
IEnumerator<BaseData>
Subscribe
(
SubscriptionDataConfig
dataConfig, EventHandler newDataAvailableHandler);
38
39
/// <summary>
40
/// Removes the specified configuration
41
/// </summary>
42
/// <param name="dataConfig">Subscription config to be removed</param>
43
void
Unsubscribe
(
SubscriptionDataConfig
dataConfig);
44
45
/// <summary>
46
/// Sets the job we're subscribing for
47
/// </summary>
48
/// <param name="job">Job we're subscribing for</param>
49
void
SetJob
(
LiveNodePacket
job);
50
51
/// <summary>
52
/// Returns whether the data provider is connected
53
/// </summary>
54
/// <returns>True if the data provider is connected</returns>
55
bool
IsConnected
{
get
; }
56
}
57
}
Common
Interfaces
IDataQueueHandler.cs
Generated by
1.8.17