Lean  $LEAN_TAG$
QuantConnect.Packets.BacktestNodePacket Class Reference

Algorithm backtest task information packet. More...

Inheritance diagram for QuantConnect.Packets.BacktestNodePacket:
[legend]

Public Member Functions

 BacktestNodePacket ()
 Default constructor for JSON More...
 
 BacktestNodePacket (int userId, int projectId, string sessionId, byte[] algorithmData, decimal startingCapital, string name)
 Initialize the backtest task packet. More...
 
 BacktestNodePacket (int userId, int projectId, string sessionId, byte[] algorithmData, string name, CashAmount? startingCapital=null)
 Initialize the backtest task packet. More...
 
- Public Member Functions inherited from QuantConnect.Packets.AlgorithmNodePacket
 AlgorithmNodePacket (PacketType type)
 Default constructor for the algorithm node: More...
 
string GetAlgorithmName ()
 Gets a unique name for the algorithm defined by this packet More...
 
- Public Member Functions inherited from QuantConnect.Packets.Packet
 Packet (PacketType type)
 Initialize the base class and setup the packet type. More...
 

Public Attributes

string Name = ""
 Name of the backtest as randomly defined in the IDE. More...
 
string BacktestId = DefaultId
 BacktestId / Algorithm Id for this task More...
 
string OptimizationId
 Optimization Id for this task More...
 
DateTime? PeriodStart
 Backtest start-date as defined in the Initialize() method. More...
 
DateTime? PeriodFinish
 Backtest end date as defined in the Initialize() method. More...
 
DateTime? OutOfSampleMaxEndDate
 Backtest maximum end date More...
 
int OutOfSampleDays
 The backtest out of sample day count More...
 
int TradeableDates = 0
 Estimated number of trading days in this backtest task based on the start-end dates. More...
 
bool IsDebugging
 True, if this is a debugging backtest More...
 
CashAmountCashAmount
 Optional initial cash amount if set More...
 
- Public Attributes inherited from QuantConnect.Packets.AlgorithmNodePacket
string HostName
 The host name to use if any More...
 
int UserId = 0
 User Id placing request More...
 
string UserToken = ""
 User API Token.
 
string OrganizationId = ""
 User Organization Id.
 
int ProjectId = 0
 Project Id of the request More...
 
string ProjectName
 Project name of the request More...
 
string SessionId = ""
 User session Id for authentication More...
 
Language Language = Language.CSharp
 Language flag: Currently represents IL code or Dynamic Scripted Types. More...
 
ServerType ServerType = ServerType.Server512
 Server type for the deployment (512, 1024, 2048) More...
 
string CompileId = ""
 Unique compile id of this backtest More...
 
string Version
 Version number identifier for the lean engine. More...
 
bool Redelivered = false
 An algorithm packet which has already been run and is being redelivered on this node. In this event we don't want to relaunch the task as it may result in unexpected behaviour for user. More...
 
byte[] Algorithm = new byte[] { }
 Algorithm binary with zip of contents More...
 
string RequestSource = "WebIDE"
 Request source - Web IDE or API - for controling result handler behaviour More...
 
Controls Controls
 Specifies values to control algorithm limits More...
 
Dictionary< string, string > Parameters = new Dictionary<string, string>()
 The parameter values used to set algorithm parameters More...
 
string HistoryProvider = ""
 String name of the HistoryProvider we're running with More...
 
DeploymentTarget DeploymentTarget
 Deployment target, either local or cloud. More...
 

Properties

override AlgorithmModeAlgorithmMode [get]
 Algorithm running mode. More...
 
- Properties inherited from QuantConnect.Packets.AlgorithmNodePacket
string AlgorithmId [get]
 Algorithm Id - BacktestId or DeployId - Common Id property between packets. More...
 
int RamAllocation [get]
 The maximum amount of RAM (in MB) this algorithm is allowed to utilize More...
 
virtual AlgorithmMode AlgorithmMode = AlgorithmMode.Backtesting [get]
 Algorithm running mode. More...
 
- Properties inherited from QuantConnect.Packets.PythonEnvironmentPacket
string PythonVirtualEnvironment [get, set]
 Virtual environment ID used to find PythonEvironments Ideally MD5, but environment names work as well. More...
 
- Properties inherited from QuantConnect.Packets.Packet
PacketType Type = PacketType.None [get, set]
 Packet type defined by a string enum More...
 
virtual string Channel = "" [get, set]
 User unique specific channel endpoint to send the packets More...
 

Additional Inherited Members

- Protected Member Functions inherited from QuantConnect.Packets.PythonEnvironmentPacket
 PythonEnvironmentPacket (PacketType type)
 Default constructor for a PythonEnvironmentPacket More...
 

Detailed Description

Algorithm backtest task information packet.

Definition at line 28 of file BacktestNodePacket.cs.

Constructor & Destructor Documentation

◆ BacktestNodePacket() [1/3]

QuantConnect.Packets.BacktestNodePacket.BacktestNodePacket ( )

Default constructor for JSON

Definition at line 108 of file BacktestNodePacket.cs.

◆ BacktestNodePacket() [2/3]

QuantConnect.Packets.BacktestNodePacket.BacktestNodePacket ( int  userId,
int  projectId,
string  sessionId,
byte[]  algorithmData,
decimal  startingCapital,
string  name 
)

Initialize the backtest task packet.

Definition at line 122 of file BacktestNodePacket.cs.

◆ BacktestNodePacket() [3/3]

QuantConnect.Packets.BacktestNodePacket.BacktestNodePacket ( int  userId,
int  projectId,
string  sessionId,
byte[]  algorithmData,
string  name,
CashAmount startingCapital = null 
)

Initialize the backtest task packet.

Definition at line 130 of file BacktestNodePacket.cs.

Member Data Documentation

◆ Name

string QuantConnect.Packets.BacktestNodePacket.Name = ""

Name of the backtest as randomly defined in the IDE.

Definition at line 38 of file BacktestNodePacket.cs.

◆ BacktestId

string QuantConnect.Packets.BacktestNodePacket.BacktestId = DefaultId

BacktestId / Algorithm Id for this task

Definition at line 44 of file BacktestNodePacket.cs.

◆ OptimizationId

string QuantConnect.Packets.BacktestNodePacket.OptimizationId

Optimization Id for this task

Definition at line 50 of file BacktestNodePacket.cs.

◆ PeriodStart

DateTime? QuantConnect.Packets.BacktestNodePacket.PeriodStart

Backtest start-date as defined in the Initialize() method.

Definition at line 56 of file BacktestNodePacket.cs.

◆ PeriodFinish

DateTime? QuantConnect.Packets.BacktestNodePacket.PeriodFinish

Backtest end date as defined in the Initialize() method.

Definition at line 62 of file BacktestNodePacket.cs.

◆ OutOfSampleMaxEndDate

DateTime? QuantConnect.Packets.BacktestNodePacket.OutOfSampleMaxEndDate

Backtest maximum end date

Definition at line 68 of file BacktestNodePacket.cs.

◆ OutOfSampleDays

int QuantConnect.Packets.BacktestNodePacket.OutOfSampleDays

The backtest out of sample day count

Definition at line 74 of file BacktestNodePacket.cs.

◆ TradeableDates

int QuantConnect.Packets.BacktestNodePacket.TradeableDates = 0

Estimated number of trading days in this backtest task based on the start-end dates.

Definition at line 80 of file BacktestNodePacket.cs.

◆ IsDebugging

bool QuantConnect.Packets.BacktestNodePacket.IsDebugging

True, if this is a debugging backtest

Definition at line 86 of file BacktestNodePacket.cs.

◆ CashAmount

CashAmount? QuantConnect.Packets.BacktestNodePacket.CashAmount

Optional initial cash amount if set

Definition at line 91 of file BacktestNodePacket.cs.

Property Documentation

◆ AlgorithmMode

override AlgorithmMode? QuantConnect.Packets.BacktestNodePacket.AlgorithmMode
get

Algorithm running mode.

Definition at line 98 of file BacktestNodePacket.cs.


The documentation for this class was generated from the following file: