5#include <unordered_map>
59 std::unordered_map<std::string, double>
features;
ObjectiveFn< PortfolioObservation > PortfolioObjectiveFn
Custom objective function specialized for PortfolioObservation.
std::function< ObjectiveResult(const Observation &, const TrialContext &)> ObjectiveFn
Type-erased custom objective accepting an observation and immutable trial context.
One timestamped point on an account-level equity curve.
std::int64_t timestamp_ms
Unix timestamp in milliseconds.
double equity
Total account equity at the timestamp.
Requested capital allocation to one strategy and market sleeve.
std::string strategy_id
Stable strategy identifier from the study definition.
double weight
Portfolio weight assigned to the sleeve.
std::string market_id
Stable market or dataset identifier from the study definition.
Account-level observation supplied to a custom portfolio objective.
std::vector< SleeveSummary > sleeves
Per-sleeve start/end summaries.
std::vector< Allocation > allocations
Allocations that produced this observation.
double capital_used
Evaluator-defined amount of capital deployed.
double turnover
Evaluator-defined portfolio turnover over the observation window.
std::unordered_map< std::string, double > features
Objective-specific account features keyed by registered name.
std::vector< AccountEquityPoint > account_equity
Time-aligned account equity series.
std::vector< double > account_returns
Account returns aligned to the evaluator's chosen interval.
Compact start/end summary for one independently evaluated portfolio sleeve.
std::string strategy_id
Stable strategy identifier.
double weight
Portfolio weight used for this sleeve.
double final_equity
Sleeve equity at the end of the observation window.
std::string market_id
Stable market or dataset identifier.
double initial_equity
Sleeve equity at the beginning of the observation window.