dxFeed Graal CXX API
Loading...
Searching...
No Matches
SessionType Struct Reference

Defines type of session - what kind of trading activity is allowed (if any), what rules are used, what impact on daily trading statistics it has, etc. More...

#include <SessionType.hpp>

Public Member Functions

bool isTrading () const noexcept
 Returns true if trading activity is allowed for this type of session.
 

Static Public Attributes

static const SessionType NO_TRADING {SessionTypeEnum::NO_TRADING, "NO_TRADING", false}
 Non-trading session type is used to mark periods of time during which trading is not allowed.
 
static const SessionType PRE_MARKET {SessionTypeEnum::PRE_MARKET, "PRE_MARKET", true}
 Pre-market session type marks extended trading session before regular trading hours.
 
static const SessionType REGULAR {SessionTypeEnum::REGULAR, "REGULAR", true}
 Regular session type marks regular trading hours session.
 
static const SessionType AFTER_MARKET {SessionTypeEnum::AFTER_MARKET, "AFTER_MARKET", true}
 After-market session type marks extended trading session after regular trading hours.
 

Detailed Description

Defines type of session - what kind of trading activity is allowed (if any), what rules are used, what impact on daily trading statistics it has, etc.

The SessionType::NO_TRADING session type is used for non-trading sessions.

Some exchanges support all session types defined here, others do not.

Some sessions may have zero duration - e.g. indices that post value once a day. Such sessions can be of any appropriate type, trading or non-trading.

Member Function Documentation

◆ isTrading()

bool SessionType::isTrading ( ) const
inlinenoexcept

Returns true if trading activity is allowed for this type of session.

Some sessions may have zero duration - e.g. indices that post value once a day. Such sessions can be of any appropriate type, trading or non-trading.