Lean  $LEAN_TAG$
QuantConnect.Lean.Engine.DataFeeds.TimeSliceFactory Class Reference

Instance base class that will provide methods for creating new TimeSlice More...

Public Member Functions

 TimeSliceFactory (DateTimeZone timeZone)
 Creates a new instance More...
 
TimeSlice CreateTimePulse (DateTime utcDateTime)
 Creates a new empty TimeSlice to be used as a time pulse More...
 
TimeSlice Create (DateTime utcDateTime, List< DataFeedPacket > data, SecurityChanges changes, Dictionary< Universe, BaseDataCollection > universeData)
 Creates a new TimeSlice for the specified time using the specified data More...
 

Detailed Description

Instance base class that will provide methods for creating new TimeSlice

Definition at line 32 of file TimeSliceFactory.cs.

Constructor & Destructor Documentation

◆ TimeSliceFactory()

QuantConnect.Lean.Engine.DataFeeds.TimeSliceFactory.TimeSliceFactory ( DateTimeZone  timeZone)

Creates a new instance

Parameters
timeZoneThe time zone required for computing algorithm and slice time

Definition at line 54 of file TimeSliceFactory.cs.

Member Function Documentation

◆ CreateTimePulse()

TimeSlice QuantConnect.Lean.Engine.DataFeeds.TimeSliceFactory.CreateTimePulse ( DateTime  utcDateTime)

Creates a new empty TimeSlice to be used as a time pulse

The objective of this method is to standardize the time pulse creation

Parameters
utcDateTimeThe UTC frontier date time
Returns
A new TimeSlice time pulse

Definition at line 65 of file TimeSliceFactory.cs.

Here is the caller graph for this function:

◆ Create()

TimeSlice QuantConnect.Lean.Engine.DataFeeds.TimeSliceFactory.Create ( DateTime  utcDateTime,
List< DataFeedPacket data,
SecurityChanges  changes,
Dictionary< Universe, BaseDataCollection universeData 
)

Creates a new TimeSlice for the specified time using the specified data

Parameters
utcDateTimeThe UTC frontier date time
dataThe data in this TimeSlice
changesThe new changes that are seen in this time slice as a result of universe selection
universeData
Returns
A new TimeSlice containing the specified data

Definition at line 89 of file TimeSliceFactory.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

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