/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using QuantConnect.Interfaces;
using QuantConnect.Lean.Engine.DataFeeds;
using QuantConnect.Lean.Engine.RealTime;
using QuantConnect.Lean.Engine.Results;
using QuantConnect.Lean.Engine.TransactionHandlers;
using QuantConnect.Packets;
namespace QuantConnect.Lean.Engine.Setup
{
///
/// Defines the parameters for
///
public class SetupHandlerParameters
{
///
/// Gets the universe selection
///
public UniverseSelection UniverseSelection { get; }
///
/// Gets the algorithm
///
public IAlgorithm Algorithm { get; }
///
/// Gets the Brokerage
///
public IBrokerage Brokerage { get; }
///
/// Gets the algorithm node packet
///
public AlgorithmNodePacket AlgorithmNodePacket { get; }
///
/// Gets the algorithm node packet
///
public IResultHandler ResultHandler { get; }
///
/// Gets the TransactionHandler
///
public ITransactionHandler TransactionHandler { get; }
///
/// Gets the RealTimeHandler
///
public IRealTimeHandler RealTimeHandler { get; }
///
/// Gets the DataCacheProvider
///
public IDataCacheProvider DataCacheProvider { get; }
///
/// The map file provider instance of the algorithm
///
public IMapFileProvider MapFileProvider { get; }
///
/// Creates a new instance
///
/// The universe selection instance
/// Algorithm instance
/// New brokerage output instance
/// Algorithm job task
/// The configured result handler
/// The configured transaction handler
/// The configured real time handler
/// The configured data cache provider
/// The map file provider
public SetupHandlerParameters(UniverseSelection universeSelection,
IAlgorithm algorithm,
IBrokerage brokerage,
AlgorithmNodePacket algorithmNodePacket,
IResultHandler resultHandler,
ITransactionHandler transactionHandler,
IRealTimeHandler realTimeHandler,
IDataCacheProvider dataCacheProvider,
IMapFileProvider mapFileProvider
)
{
UniverseSelection = universeSelection;
Algorithm = algorithm;
Brokerage = brokerage;
AlgorithmNodePacket = algorithmNodePacket;
ResultHandler = resultHandler;
TransactionHandler = transactionHandler;
RealTimeHandler = realTimeHandler;
DataCacheProvider = dataCacheProvider;
MapFileProvider = mapFileProvider;
}
}
}