B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Engine::SessionsScheduleManager Class Reference

Abstract class(interface) that introduces API contract of sessions schedule manager. More...

#include <B2BITS_SessionsScheduler.h>

Public Member Functions

virtual bool onPlanExecutionException (const Utils::Exception &executionException)
 Callback routine that is called when an exception of class Utils::Exception or derived from it has been thrown during plan execution.
 
virtual void onTradePeriodBegin (ScheduleExecutionPlan &executionPlan)
 Callback routine that is called when trade period begin event is triggered.
 
virtual void onTradePeriodEnd (ScheduleExecutionPlan &executionPlan)
 Callback routine that is called when trade period end event is triggered.
 
virtual ~SessionsScheduleManager ()=default
 

Detailed Description

Abstract class(interface) that introduces API contract of sessions schedule manager.

Constructor & Destructor Documentation

◆ ~SessionsScheduleManager()

virtual Engine::SessionsScheduleManager::~SessionsScheduleManager ( )
virtualdefault

Member Function Documentation

◆ onPlanExecutionException()

virtual bool Engine::SessionsScheduleManager::onPlanExecutionException ( const Utils::Exception & executionException)
inlinevirtual

Callback routine that is called when an exception of class Utils::Exception or derived from it has been thrown during plan execution.

Parameters
executionException- the exception thrown. Return true to suppress the exception and continue plan execution or false to pass exception further and stop execution of the plan.

◆ onTradePeriodBegin()

virtual void Engine::SessionsScheduleManager::onTradePeriodBegin ( ScheduleExecutionPlan & executionPlan)
inlinevirtual

Callback routine that is called when trade period begin event is triggered.

Parameters
executionPlan- proposed execution plan as reaction on event. SessionsSchedule Schedule implementation populates execution plan with two actions for each session as a reaction on trade period begin event. The first is ScheduleSessionActions_Start and the second is ScheduleSessionActions_Connect. User can remove any action from or add to the plan if necessary.

◆ onTradePeriodEnd()

virtual void Engine::SessionsScheduleManager::onTradePeriodEnd ( ScheduleExecutionPlan & executionPlan)
inlinevirtual

Callback routine that is called when trade period end event is triggered.

Parameters
executionPlan- proposed execution plan as reaction on event. SessionsSchedule Schedule implementation populates execution plan with two actions for each session as a reaction on trade period end event. The first is ScheduleSessionActions_Disconnect and the second is ScheduleSessionActions_Stop. User can remove any action from or add to the plan if necessary.