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

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

Inheritance diagram for slick::trader::OrderRejectEvent:
Collaboration diagram for slick::trader::OrderRejectEvent:

Public Member Functions

 OrderRejectEvent ()
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]
price_t price
price_t stop_price
qty_t 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 169 of file order_event.hpp.

Constructor & Destructor Documentation

◆ OrderRejectEvent()

slick::trader::OrderRejectEvent::OrderRejectEvent ( )
inline

Member Function Documentation

◆ set_reason()

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

Member Data Documentation

◆ price

price_t slick::trader::OrderRejectEvent::price

Definition at line 171 of file order_event.hpp.

Referenced by OrderRejectEvent().

◆ quantity

qty_t slick::trader::OrderRejectEvent::quantity

Definition at line 173 of file order_event.hpp.

Referenced by OrderRejectEvent().

◆ reason

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

Definition at line 170 of file order_event.hpp.

Referenced by OrderRejectEvent(), and set_reason().

◆ stop_price

price_t slick::trader::OrderRejectEvent::stop_price

Definition at line 172 of file order_event.hpp.

Referenced by OrderRejectEvent().


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