#include <fastmm/core/position.hpp>
◆ net_pnl()
| Notional fastmm::Position::net_pnl |
( |
| ) |
const |
|
inlinenoexcept |
◆ flat()
| bool fastmm::Position::flat |
( |
| ) |
const |
|
inlinenoexcept |
◆ abs_qty()
| Qty fastmm::Position::abs_qty |
( |
| ) |
const |
|
inlinenoexcept |
◆ qty
| Qty fastmm::Position::qty {} |
signed net position (+ long / - short)
◆ avg_px
| Price fastmm::Position::avg_px {} |
average entry price of the open position
◆ realized
◆ unrealized
| Notional fastmm::Position::unrealized {} |
mark-to-market of the open position at the last mark()
◆ fees
cumulative fees paid (negative = rebates)
◆ last_mark
| Price fastmm::Position::last_mark {} |
◆ gross_traded
| Qty fastmm::Position::gross_traded {} |
◆ fills
| std::uint32_t fastmm::Position::fills = 0 |
◆ pad_
| std::uint32_t fastmm::Position::pad_ = 0 |