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

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

Inheritance diagram for slick::trader::OrderCancelEvent:
Collaboration diagram for slick::trader::OrderCancelEvent:

Public Member Functions

 OrderCancelEvent ()
void set_reason (std::string_view r)
Public Member Functions inherited from slick::trader::OrderEvent
 OrderEvent (EventType t)
void set_order_id (std::string_view id)
Public Member Functions inherited from slick::trader::OrderEventBase
 OrderEventBase (EventType t)
void set_client_order_id (std::string_view id)
Public Member Functions inherited from slick::trader::Event
 Event (EventType t=EventType::TRADE)
void set_instrument (std::string_view instr)

Public Attributes

char reason [MAX_REJECT_REASON_LENGTH]
qty_t remaining_quantity
Public Attributes inherited from slick::trader::OrderEvent
char order_id [MAX_ORDER_ID_LENGTH]
Public Attributes inherited from slick::trader::OrderEventBase
char client_order_id [64]
Side side
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 190 of file order_event.hpp.

Constructor & Destructor Documentation

◆ OrderCancelEvent()

slick::trader::OrderCancelEvent::OrderCancelEvent ( )
inline

Member Function Documentation

◆ set_reason()

void slick::trader::OrderCancelEvent::set_reason ( std::string_view r)
inline

Definition at line 199 of file order_event.hpp.

References slick::trader::MAX_REJECT_REASON_LENGTH, and reason.

Member Data Documentation

◆ reason

char slick::trader::OrderCancelEvent::reason[MAX_REJECT_REASON_LENGTH]

Definition at line 191 of file order_event.hpp.

Referenced by OrderCancelEvent(), and set_reason().

◆ remaining_quantity

qty_t slick::trader::OrderCancelEvent::remaining_quantity

Definition at line 192 of file order_event.hpp.

Referenced by OrderCancelEvent().


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