algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::TradingDay Struct Reference

One calendar date and whether the market opens on it. More...

#include <algotradelib/src/core/calendar.hpp>

Collaboration diagram for algotradelib::TradingDay:

Public Attributes

Date date_ {}
 The market's local calendar date, as the broker reports it.
bool open_ {false}
 Whether the market opens on date_.

Detailed Description

One calendar date and whether the market opens on it.

open_ means the exchange trades that day. It is not a banking or settlement business day, which some brokers report separately.

Definition at line 19 of file calendar.hpp.

Member Data Documentation

◆ date_

Date algotradelib::TradingDay::date_ {}

The market's local calendar date, as the broker reports it.

A broker row whose date cannot be read produces no TradingDay; it is counted in TradingCalendar::unreadable_days_ instead.

Definition at line 26 of file calendar.hpp.

◆ open_

bool algotradelib::TradingDay::open_ {false}

Whether the market opens on date_.

Definition at line 28 of file calendar.hpp.


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