|
Lean
$LEAN_TAG$
|
Represents the state of an exchange during a specified time range More...
Public Member Functions | |
| MarketHoursSegment (MarketHoursState state, TimeSpan start, TimeSpan end) | |
| Initializes a new instance of the MarketHoursSegment class More... | |
| bool | Contains (TimeSpan time) |
| Determines whether or not the specified time is contained within this segment More... | |
| bool | Overlaps (TimeSpan start, TimeSpan end) |
| Determines whether or not the specified time range overlaps with this segment More... | |
| override string | ToString () |
| Returns a string that represents the current object. More... | |
Static Public Member Functions | |
| static MarketHoursSegment | OpenAllDay () |
| Gets a new market hours segment representing being open all day More... | |
| static MarketHoursSegment | ClosedAllDay () |
| Gets a new market hours segment representing being open all day More... | |
| static MarketHoursSegment[] | GetMarketHoursSegments (TimeSpan extendedMarketOpen, TimeSpan marketOpen, TimeSpan marketClose, TimeSpan extendedMarketClose) |
| Creates the market hours segments for the specified market open/close times More... | |
Properties | |
| TimeSpan | Start [get] |
| Gets the start time for this segment More... | |
| TimeSpan | End [get] |
| Gets the end time for this segment More... | |
| MarketHoursState | State [get] |
| Gets the market hours state for this segment More... | |
Represents the state of an exchange during a specified time range
Definition at line 26 of file MarketHoursSegment.cs.
| QuantConnect.Securities.MarketHoursSegment.MarketHoursSegment | ( | MarketHoursState | state, |
| TimeSpan | start, | ||
| TimeSpan | end | ||
| ) |
Initializes a new instance of the MarketHoursSegment class
| state | The state of the market during the specified times |
| start | The start time of the segment |
| end | The end time of the segment |
Definition at line 52 of file MarketHoursSegment.cs.
|
static |
Gets a new market hours segment representing being open all day
Definition at line 62 of file MarketHoursSegment.cs.
|
static |
Gets a new market hours segment representing being open all day
Definition at line 70 of file MarketHoursSegment.cs.
|
static |
Creates the market hours segments for the specified market open/close times
| extendedMarketOpen | The extended market open time. If no pre market, set to market open |
| marketOpen | The regular market open time |
| marketClose | The regular market close time |
| extendedMarketClose | The extended market close time. If no post market, set to market close |
Definition at line 83 of file MarketHoursSegment.cs.
| bool QuantConnect.Securities.MarketHoursSegment.Contains | ( | TimeSpan | time | ) |
Determines whether or not the specified time is contained within this segment
| time | The time to check |
Definition at line 129 of file MarketHoursSegment.cs.
| bool QuantConnect.Securities.MarketHoursSegment.Overlaps | ( | TimeSpan | start, |
| TimeSpan | end | ||
| ) |
Determines whether or not the specified time range overlaps with this segment
| start | The start of the range |
| end | The end of the range |
Definition at line 140 of file MarketHoursSegment.cs.
| override string QuantConnect.Securities.MarketHoursSegment.ToString | ( | ) |
Returns a string that represents the current object.
Definition at line 151 of file MarketHoursSegment.cs.
|
get |
Gets the start time for this segment
Definition at line 32 of file MarketHoursSegment.cs.
|
get |
Gets the end time for this segment
Definition at line 38 of file MarketHoursSegment.cs.
|
get |
Gets the market hours state for this segment
Definition at line 44 of file MarketHoursSegment.cs.