Lean
$LEAN_TAG$
|
Uses a function to define an enumerable of dates over a requested start/end period More...
Public Member Functions | |
FuncDateRule (string name, Func< DateTime, DateTime, IEnumerable< DateTime >> getDatesFunction) | |
Initializes a new instance of the FuncDateRule class More... | |
FuncDateRule (string name, PyObject getDatesFunction) | |
Initializes a new instance of the FuncDateRule class using a Python function More... | |
IEnumerable< DateTime > | GetDates (DateTime start, DateTime end) |
Gets the dates produced by this date rule between the specified times More... | |
Properties | |
string | Name [get] |
Gets a name for this rule More... | |
Properties inherited from QuantConnect.Scheduling.IDateRule | |
string | Name [get] |
Gets a name for this rule More... | |
Uses a function to define an enumerable of dates over a requested start/end period
Definition at line 26 of file FuncDateRule.cs.
QuantConnect.Scheduling.FuncDateRule.FuncDateRule | ( | string | name, |
Func< DateTime, DateTime, IEnumerable< DateTime >> | getDatesFunction | ||
) |
Initializes a new instance of the FuncDateRule class
name | The name of this rule |
getDatesFunction | The time applicator function |
Definition at line 35 of file FuncDateRule.cs.
QuantConnect.Scheduling.FuncDateRule.FuncDateRule | ( | string | name, |
PyObject | getDatesFunction | ||
) |
Initializes a new instance of the FuncDateRule class using a Python function
name | The name of this rule |
getDatesFunction | The time applicator function in Python |
Definition at line 46 of file FuncDateRule.cs.
IEnumerable<DateTime> QuantConnect.Scheduling.FuncDateRule.GetDates | ( | DateTime | start, |
DateTime | end | ||
) |
Gets the dates produced by this date rule between the specified times
start | The start of the interval to produce dates for |
end | The end of the interval to produce dates for |
Implements QuantConnect.Scheduling.IDateRule.
Definition at line 69 of file FuncDateRule.cs.
|
get |
Gets a name for this rule
Definition at line 59 of file FuncDateRule.cs.