![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
One order a guard refused, with the limit and the value that exceeded it. More...
#include <algotradelib/src/strategy/risk.hpp>
Public Attributes | |
| GuardReason | reason_ {GuardReason::TRADING_HALTED} |
| Which check refused the order. | |
| InstrumentId | instrument_ |
| The instrument of the refused order. | |
| std::string | tag_ |
| The tag of the intent the order came from. | |
| std::optional< HaltReason > | halt_reason_ |
| The hold that stopped the order, when reason_ is TRADING_HALTED; otherwise empty. | |
| std::optional< Decimal64 > | limit_ |
| The limit that was exceeded, where the reason has one. | |
| std::optional< Decimal64 > | attempted_ |
| The value the order would have reached, where the reason has one. | |
One order a guard refused, with the limit and the value that exceeded it.
| std::optional<Decimal64> algotradelib::strategy::GuardRejection::attempted_ |
The value the order would have reached, where the reason has one.
Definition at line 257 of file risk.hpp.
Referenced by algotradelib::strategy::RiskGuard::evaluate().
| std::optional<HaltReason> algotradelib::strategy::GuardRejection::halt_reason_ |
| InstrumentId algotradelib::strategy::GuardRejection::instrument_ |
The instrument of the refused order.
Definition at line 249 of file risk.hpp.
Referenced by algotradelib::strategy::RiskGuard::evaluate().
| std::optional<Decimal64> algotradelib::strategy::GuardRejection::limit_ |
The limit that was exceeded, where the reason has one.
Definition at line 255 of file risk.hpp.
Referenced by algotradelib::strategy::RiskGuard::evaluate().
| GuardReason algotradelib::strategy::GuardRejection::reason_ {GuardReason::TRADING_HALTED} |
Which check refused the order.
Definition at line 247 of file risk.hpp.
Referenced by algotradelib::strategy::RiskGuard::evaluate().
| std::string algotradelib::strategy::GuardRejection::tag_ |
The tag of the intent the order came from.
Definition at line 251 of file risk.hpp.
Referenced by algotradelib::strategy::RiskGuard::evaluate().