Skip to content

LiveResultPacket

QuantConnect.Packets.LiveResultPacket

LiveResultPacket()
LiveResultPacket(json: str)
LiveResultPacket(job: LiveNodePacket, results: LiveResult)

Bases: Packet

Live result packet from a lean engine algorithm.

Signature descriptions:

  • Default constructor for JSON Serialization

  • Compose the packet from a JSON string:

  • Compose Live Result Data Packet - With tradable dates

Parameters:

Name Type Description Default
job Optional[LiveNodePacket]

Job that started this request

None
results Optional[LiveResult]

Results class for the Backtest job

None

user_id

user_id: int

User Id sending result packet

project_id

project_id: int

Project Id of the result packet

deploy_id

deploy_id: str

Live Algorithm Id (DeployId) for this result packet

results

results: LiveResult

Result data object for this result packet

type

type: PacketType

Packet type defined by a string enum

channel

channel: str

User unique specific channel endpoint to send the packets

create_empty

create_empty(job: LiveNodePacket) -> LiveResultPacket

Creates an empty result packet, useful when the algorithm fails to initialize

Parameters:

Name Type Description Default
job LiveNodePacket

The associated job packet

required

Returns:

Type Description
LiveResultPacket

An empty result packet.