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

Store data (either raw or adjusted) and the time at which it should be synchronized More...

Inheritance diagram for QuantConnect.Lean.Engine.DataFeeds.SubscriptionData:
[legend]

Public Member Functions

 SubscriptionData (BaseData data, DateTime emitTimeUtc)
 Initializes a new instance of the SubscriptionData class More...
 

Static Public Member Functions

static SubscriptionData Create (bool dailyStrictEndTimeEnabled, SubscriptionDataConfig configuration, SecurityExchangeHours exchangeHours, TimeZoneOffsetProvider offsetProvider, BaseData data, DataNormalizationMode normalizationMode, decimal? factor=null)
 Clones the data, computes the utc emit time and performs exchange round down behavior, storing the result in a new SubscriptionData instance More...
 

Public Attributes

virtual BaseData Data => _data
 Gets the data More...
 

Properties

BaseData _data [get, set]
 Data More...
 
DateTime EmitTimeUtc [get]
 Gets the UTC emit time for this data More...
 

Detailed Description

Store data (either raw or adjusted) and the time at which it should be synchronized

Definition at line 27 of file SubscriptionData.cs.

Constructor & Destructor Documentation

◆ SubscriptionData()

QuantConnect.Lean.Engine.DataFeeds.SubscriptionData.SubscriptionData ( BaseData  data,
DateTime  emitTimeUtc 
)

Initializes a new instance of the SubscriptionData class

Parameters
dataThe base data
emitTimeUtcThe emit time for the data

Definition at line 49 of file SubscriptionData.cs.

Here is the caller graph for this function:

Member Function Documentation

◆ Create()

static SubscriptionData QuantConnect.Lean.Engine.DataFeeds.SubscriptionData.Create ( bool  dailyStrictEndTimeEnabled,
SubscriptionDataConfig  configuration,
SecurityExchangeHours  exchangeHours,
TimeZoneOffsetProvider  offsetProvider,
BaseData  data,
DataNormalizationMode  normalizationMode,
decimal?  factor = null 
)
static

Clones the data, computes the utc emit time and performs exchange round down behavior, storing the result in a new SubscriptionData instance

Parameters
configurationThe subscription's configuration
exchangeHoursThe exchange hours of the security
offsetProviderThe subscription's offset provider
dataThe data being emitted
normalizationModeSpecifies how data is normalized
factorprice scale factor
Returns
A new SubscriptionData containing the specified data

Definition at line 65 of file SubscriptionData.cs.

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

Member Data Documentation

◆ Data

virtual BaseData QuantConnect.Lean.Engine.DataFeeds.SubscriptionData.Data => _data

Gets the data

Definition at line 37 of file SubscriptionData.cs.

Property Documentation

◆ _data

BaseData QuantConnect.Lean.Engine.DataFeeds.SubscriptionData._data
getsetprotected

Data

Definition at line 32 of file SubscriptionData.cs.

◆ EmitTimeUtc

DateTime QuantConnect.Lean.Engine.DataFeeds.SubscriptionData.EmitTimeUtc
get

Gets the UTC emit time for this data

Definition at line 42 of file SubscriptionData.cs.


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