|
Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
|
#include <slick-trader/core/pnl_calculator.hpp>
Public Member Functions | |
| double | get_realized () const |
| double | get_unrealized () const |
| double | get_fees () const |
| double | get_total () const |
Public Attributes | |
| std::string | strategy_id |
| price_t | realized_pnl {0} |
| price_t | unrealized_pnl {0} |
| price_t | total_fees {0} |
| price_t | total_pnl {0} |
| uint64_t | timestamp_ns {0} |
Definition at line 13 of file pnl_calculator.hpp.
|
inline |
Definition at line 23 of file pnl_calculator.hpp.
References slick::trader::from_price_t(), and total_fees.
|
inline |
Definition at line 21 of file pnl_calculator.hpp.
References slick::trader::from_price_t(), and realized_pnl.
|
inline |
Definition at line 24 of file pnl_calculator.hpp.
References slick::trader::from_price_t(), and total_pnl.
|
inline |
Definition at line 22 of file pnl_calculator.hpp.
References slick::trader::from_price_t(), and unrealized_pnl.
| price_t slick::trader::PnLSnapshot::realized_pnl {0} |
Definition at line 15 of file pnl_calculator.hpp.
Referenced by slick::trader::PnLCalculator::calculate_pnl(), and get_realized().
| std::string slick::trader::PnLSnapshot::strategy_id |
Definition at line 14 of file pnl_calculator.hpp.
Referenced by slick::trader::PnLCalculator::calculate_pnl().
| uint64_t slick::trader::PnLSnapshot::timestamp_ns {0} |
Definition at line 19 of file pnl_calculator.hpp.
Referenced by slick::trader::PnLCalculator::calculate_pnl().
| price_t slick::trader::PnLSnapshot::total_fees {0} |
Definition at line 17 of file pnl_calculator.hpp.
Referenced by slick::trader::PnLCalculator::calculate_pnl(), and get_fees().
| price_t slick::trader::PnLSnapshot::total_pnl {0} |
Definition at line 18 of file pnl_calculator.hpp.
Referenced by slick::trader::PnLCalculator::calculate_pnl(), and get_total().
| price_t slick::trader::PnLSnapshot::unrealized_pnl {0} |
Definition at line 16 of file pnl_calculator.hpp.
Referenced by slick::trader::PnLCalculator::calculate_pnl(), and get_unrealized().