|
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 | |
| PositionUpdateEvent () | |
| 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] |
| qty_t | quantity |
| price_t | avg_price |
| price_t | realized_pnl |
| uint64_t | last_update_time |
| 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 16 of file position_event.hpp.
|
inline |
Definition at line 23 of file position_event.hpp.
References slick::trader::Event::Event(), avg_price, last_update_time, quantity, realized_pnl, and strategy_id.
|
inline |
Definition at line 31 of file position_event.hpp.
References slick::trader::MAX_STRATEGY_ID_LENGTH, and strategy_id.
| price_t slick::trader::PositionUpdateEvent::avg_price |
Definition at line 19 of file position_event.hpp.
Referenced by PositionUpdateEvent().
| uint64_t slick::trader::PositionUpdateEvent::last_update_time |
Definition at line 21 of file position_event.hpp.
Referenced by PositionUpdateEvent().
| qty_t slick::trader::PositionUpdateEvent::quantity |
Definition at line 18 of file position_event.hpp.
Referenced by PositionUpdateEvent().
| price_t slick::trader::PositionUpdateEvent::realized_pnl |
Definition at line 20 of file position_event.hpp.
Referenced by PositionUpdateEvent().
| char slick::trader::PositionUpdateEvent::strategy_id[MAX_STRATEGY_ID_LENGTH] |
Definition at line 17 of file position_event.hpp.
Referenced by PositionUpdateEvent(), and set_strategy_id().