Lean
$LEAN_TAG$
|
Backtest result packet: send backtest information to GUI for user consumption. More...
Public Member Functions | |
BacktestResultPacket () | |
Default constructor for JSON Serialization More... | |
BacktestResultPacket (string json) | |
Compose the packet from a JSON string: More... | |
BacktestResultPacket (BacktestNodePacket job, BacktestResult results, DateTime endDate, DateTime startDate, decimal progress=1m) | |
Compose result data packet - with tradable dates from the backtest job task and the partial result packet. More... | |
Public Member Functions inherited from QuantConnect.Packets.Packet | |
Packet (PacketType type) | |
Initialize the base class and setup the packet type. More... | |
Static Public Member Functions | |
static BacktestResultPacket | CreateEmpty (BacktestNodePacket job) |
Creates an empty result packet, useful when the algorithm fails to initialize More... | |
Properties | |
int | UserId [get, set] |
User Id placing this task More... | |
int | ProjectId [get, set] |
Project Id of the this task. More... | |
string | SessionId = string.Empty [get, set] |
User Session Id More... | |
string | BacktestId = string.Empty [get, set] |
BacktestId for this result packet More... | |
string | OptimizationId [get, set] |
OptimizationId for this result packet if any More... | |
string | CompileId = string.Empty [get, set] |
Compile Id for the algorithm which generated this result packet. More... | |
DateTime | PeriodStart [get, set] |
Start of the backtest period as defined in Initialize() method. More... | |
DateTime | PeriodFinish [get, set] |
End of the backtest period as defined in the Initialize() method. More... | |
DateTime | DateRequested [get, set] |
DateTime (EST) the user requested this backtest. More... | |
DateTime | DateFinished [get, set] |
DateTime (EST) when the backtest was completed. More... | |
decimal | Progress [get, set] |
Progress of the backtest as a percentage from 0-1 based on the days lapsed from start-finish. More... | |
string | Name = string.Empty [get, set] |
Name of this backtest. More... | |
BacktestResult | Results = new () [get, set] |
Result data object for this backtest More... | |
double | ProcessingTime [get, set] |
Processing time of the algorithm (from moment the algorithm arrived on the algorithm node) More... | |
int | TradeableDates [get, set] |
Estimated number of tradeable days in the backtest based on the start and end date or the backtest 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... | |
Backtest result packet: send backtest information to GUI for user consumption.
Definition at line 29 of file BacktestResultPacket.cs.
QuantConnect.Packets.BacktestResultPacket.BacktestResultPacket | ( | ) |
Default constructor for JSON Serialization
Definition at line 109 of file BacktestResultPacket.cs.
QuantConnect.Packets.BacktestResultPacket.BacktestResultPacket | ( | string | json | ) |
Compose the packet from a JSON string:
Definition at line 118 of file BacktestResultPacket.cs.
QuantConnect.Packets.BacktestResultPacket.BacktestResultPacket | ( | BacktestNodePacket | job, |
BacktestResult | results, | ||
DateTime | endDate, | ||
DateTime | startDate, | ||
decimal | progress = 1m |
||
) |
Compose result data packet - with tradable dates from the backtest job task and the partial result packet.
job | Job that started this request |
results | Results class for the Backtest job |
endDate | The algorithms backtest end date |
startDate | The algorithms backtest start date |
progress | Progress of the packet. For the packet we assume progess of 100%. |
Definition at line 160 of file BacktestResultPacket.cs.
|
static |
Creates an empty result packet, useful when the algorithm fails to initialize
job | The associated job packet |
Definition at line 190 of file BacktestResultPacket.cs.
|
getset |
User Id placing this task
Definition at line 34 of file BacktestResultPacket.cs.
|
getset |
Project Id of the this task.
Definition at line 39 of file BacktestResultPacket.cs.
|
getset |
User Session Id
Definition at line 44 of file BacktestResultPacket.cs.
|
getset |
BacktestId for this result packet
Definition at line 49 of file BacktestResultPacket.cs.
|
getset |
OptimizationId for this result packet if any
Definition at line 54 of file BacktestResultPacket.cs.
|
getset |
Compile Id for the algorithm which generated this result packet.
Definition at line 59 of file BacktestResultPacket.cs.
|
getset |
Start of the backtest period as defined in Initialize() method.
Definition at line 64 of file BacktestResultPacket.cs.
|
getset |
End of the backtest period as defined in the Initialize() method.
Definition at line 69 of file BacktestResultPacket.cs.
|
getset |
DateTime (EST) the user requested this backtest.
Definition at line 74 of file BacktestResultPacket.cs.
|
getset |
DateTime (EST) when the backtest was completed.
Definition at line 79 of file BacktestResultPacket.cs.
|
getset |
Progress of the backtest as a percentage from 0-1 based on the days lapsed from start-finish.
Definition at line 84 of file BacktestResultPacket.cs.
|
getset |
Name of this backtest.
Definition at line 89 of file BacktestResultPacket.cs.
|
getset |
Result data object for this backtest
Definition at line 94 of file BacktestResultPacket.cs.
|
getset |
Processing time of the algorithm (from moment the algorithm arrived on the algorithm node)
Definition at line 99 of file BacktestResultPacket.cs.
|
getset |
Estimated number of tradeable days in the backtest based on the start and end date or the backtest
Definition at line 104 of file BacktestResultPacket.cs.