![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
What a sellable quantity covers, and how RiskGuard must treat resting sells against it. More...
#include <algotradelib/src/core/types.hpp>
Public Types | |
| enum class | Coverage { UNESTABLISHED , WHOLE_HOLDING , PARTIAL } |
| Whether the figure covers the whole holding. More... | |
| enum class | RestingTreatment { UNESTABLISHED , DEDUCT } |
| How RiskGuard treats resting sell orders against the figure. More... | |
Public Member Functions | |
| constexpr bool | is_enforceable () const noexcept |
| Tests whether RiskGuard may check a sell against a figure with this basis. | |
Public Attributes | |
| Coverage | coverage_ = Coverage::UNESTABLISHED |
| What the figure covers; unestablished by default. | |
| RestingTreatment | resting_ = RestingTreatment::UNESTABLISHED |
| How resting sells are treated; unestablished by default. | |
| bool | verified_ = false |
| Whether the basis was confirmed from a real broker response, rather than stated as a policy. | |
What a sellable quantity covers, and how RiskGuard must treat resting sells against it.
Both parts default to UNESTABLISHED, and RiskGuard refuses a checked sell against a figure whose basis is not enforceable. An adapter that fills sellable_quantity_ must state this too.
|
strong |
|
strong |
|
inlineconstexprnoexcept |
| Coverage algotradelib::SellableBasis::coverage_ = Coverage::UNESTABLISHED |
What the figure covers; unestablished by default.
Definition at line 946 of file types.hpp.
Referenced by is_enforceable(), and algotradelib::strategy::Portfolio< Broker >::sellable_reading_for().
| RestingTreatment algotradelib::SellableBasis::resting_ = RestingTreatment::UNESTABLISHED |
How resting sells are treated; unestablished by default.
Definition at line 948 of file types.hpp.
Referenced by is_enforceable(), and algotradelib::strategy::Portfolio< Broker >::sellable_reading_for().
| bool algotradelib::SellableBasis::verified_ = false |