Lean
$LEAN_TAG$
|
Uses a function to define a time rule as a projection of date times to date times More...
Public Member Functions | |
FuncTimeRule (string name, Func< IEnumerable< DateTime >, IEnumerable< DateTime >> createUtcEventTimesFunction) | |
Initializes a new instance of the FuncTimeRule class More... | |
FuncTimeRule (string name, PyObject createUtcEventTimesFunction) | |
Initializes a new instance of the FuncTimeRule class using a Python function More... | |
IEnumerable< DateTime > | CreateUtcEventTimes (IEnumerable< DateTime > dates) |
Creates the event times for the specified dates in UTC More... | |
Properties | |
string | Name [get] |
Gets a name for this rule More... | |
![]() | |
string | Name [get] |
Gets a name for this rule More... | |
Uses a function to define a time rule as a projection of date times to date times
Definition at line 26 of file FuncTimeRule.cs.
QuantConnect.Scheduling.FuncTimeRule.FuncTimeRule | ( | string | name, |
Func< IEnumerable< DateTime >, IEnumerable< DateTime >> | createUtcEventTimesFunction | ||
) |
Initializes a new instance of the FuncTimeRule class
name | The name of the time rule |
createUtcEventTimesFunction | Function used to transform dates into event date times |
Definition at line 35 of file FuncTimeRule.cs.
QuantConnect.Scheduling.FuncTimeRule.FuncTimeRule | ( | string | name, |
PyObject | createUtcEventTimesFunction | ||
) |
Initializes a new instance of the FuncTimeRule class using a Python function
name | The name of the time rule |
createUtcEventTimesFunction | Function used to transform dates into event date times in Python |
Definition at line 46 of file FuncTimeRule.cs.
IEnumerable<DateTime> QuantConnect.Scheduling.FuncTimeRule.CreateUtcEventTimes | ( | IEnumerable< DateTime > | dates | ) |
Creates the event times for the specified dates in UTC
dates | The dates to apply times to |
Implements QuantConnect.Scheduling.ITimeRule.
Definition at line 69 of file FuncTimeRule.cs.
|
get |
Gets a name for this rule
Definition at line 59 of file FuncTimeRule.cs.