|
Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
|
#include <slick-trader/events/position_event.hpp>
Public Member Functions | |
| PnLUpdateEvent () | |
| void | set_strategy_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 | strategy_id [MAX_STRATEGY_ID_LENGTH] |
| price_t | realized_pnl |
| price_t | unrealized_pnl |
| price_t | total_pnl |
| 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] |
Definition at line 39 of file position_event.hpp.
|
inline |
Definition at line 45 of file position_event.hpp.
References slick::trader::Event::Event(), realized_pnl, strategy_id, total_pnl, and unrealized_pnl.
|
inline |
Definition at line 52 of file position_event.hpp.
References slick::trader::MAX_STRATEGY_ID_LENGTH, and strategy_id.
| price_t slick::trader::PnLUpdateEvent::realized_pnl |
Definition at line 41 of file position_event.hpp.
Referenced by PnLUpdateEvent().
| char slick::trader::PnLUpdateEvent::strategy_id[MAX_STRATEGY_ID_LENGTH] |
Definition at line 40 of file position_event.hpp.
Referenced by PnLUpdateEvent(), and set_strategy_id().
| price_t slick::trader::PnLUpdateEvent::total_pnl |
Definition at line 43 of file position_event.hpp.
Referenced by PnLUpdateEvent().
| price_t slick::trader::PnLUpdateEvent::unrealized_pnl |
Definition at line 42 of file position_event.hpp.
Referenced by PnLUpdateEvent().