algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::strategy::WeightTarget Struct Reference

The result of weight_target: a target position or a refusal, exactly one of them. More...

#include <algotradelib/src/strategy/reconcile.hpp>

Public Attributes

std::optional< TargetPosition > target_
 The target position, if the weight could be sized.
std::optional< RejectReason > refused_
 Why it could not be, otherwise.

Detailed Description

The result of weight_target: a target position or a refusal, exactly one of them.

Definition at line 840 of file reconcile.hpp.

Member Data Documentation

◆ refused_

std::optional<RejectReason> algotradelib::strategy::WeightTarget::refused_

Why it could not be, otherwise.

Definition at line 844 of file reconcile.hpp.

Referenced by algotradelib::strategy::weight_target().

◆ target_

std::optional<TargetPosition> algotradelib::strategy::WeightTarget::target_

The target position, if the weight could be sized.

Definition at line 842 of file reconcile.hpp.

Referenced by algotradelib::strategy::weight_target().


The documentation for this struct was generated from the following file: