Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
slick::trader::InstrumentStatusEvent Struct Reference

#include <slick-trader/events/instrument_status_event.hpp>

Inheritance diagram for slick::trader::InstrumentStatusEvent:
Collaboration diagram for slick::trader::InstrumentStatusEvent:

Public Member Functions

 InstrumentStatusEvent ()
void set_reason (std::string_view text)
Public Member Functions inherited from slick::trader::Event
 Event (EventType t=EventType::TRADE)
void set_instrument (std::string_view instr)

Public Attributes

TradingStatus status
bool cancel_allowed
char reason [MAX_STATUS_REASON_LENGTH]
Public Attributes inherited from slick::trader::Event
EventType type
uint64_t timestamp_ns
uint64_t event_time_ns
BrokerId broker_id
char instrument [MAX_INSTRUMENT_LENGTH]

Detailed Description

Definition at line 36 of file instrument_status_event.hpp.

Constructor & Destructor Documentation

◆ InstrumentStatusEvent()

slick::trader::InstrumentStatusEvent::InstrumentStatusEvent ( )
inline

Member Function Documentation

◆ set_reason()

void slick::trader::InstrumentStatusEvent::set_reason ( std::string_view text)
inline

Member Data Documentation

◆ cancel_allowed

bool slick::trader::InstrumentStatusEvent::cancel_allowed

◆ reason

char slick::trader::InstrumentStatusEvent::reason[MAX_STATUS_REASON_LENGTH]

Definition at line 39 of file instrument_status_event.hpp.

Referenced by InstrumentStatusEvent(), and set_reason().

◆ status

TradingStatus slick::trader::InstrumentStatusEvent::status

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