|
| MarketPhase | phase (std::chrono::system_clock::time_point now, std::optional< bool > trading_day) const |
| | Returns the market phase at an instant.
|
| Date | local_date (std::chrono::system_clock::time_point now) const |
| | Returns the market's local date at an instant.
|
| std::chrono::system_clock::time_point | opens_at (std::chrono::system_clock::time_point now) const |
| | Returns the instant the session opens on the local date of an instant.
|
| std::chrono::system_clock::time_point | closes_at (std::chrono::system_clock::time_point now) const |
| | Returns the instant the session closes on the local date of an instant.
|
|
| std::chrono::minutes | open_ {std::chrono::hours(9)} |
| | The session open, in minutes from local midnight.
|
| std::chrono::minutes | close_ {std::chrono::hours(15) + std::chrono::minutes(30)} |
| | The session close, in minutes from local midnight.
|
| std::chrono::minutes | utc_offset_ {std::chrono::hours(9)} |
| | The market's offset from UTC.
|
| std::string | source_ {"KRX regular session, 09:00-15:30 KST (library default)"} |
| | A description of where the window came from, for reports.
|
The intraday session of a market, as the operator states it.
Times are minutes from local midnight, with a fixed UTC offset. The default is the KRX regular session, 09:00-15:30 KST.
- Note
- The offset is fixed: a market that observes daylight saving needs a different window each season, or an adapter that fills each day's session hours (see stated_session_phase).
Definition at line 122 of file event.hpp.