![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
How recovery opened a budgeted runner's run, or why it did not (RecoveryReport::run_). More...
#include <algotradelib/src/runner/run_ledger.hpp>
Public Attributes | |
| bool | opened_ {false} |
| Whether the run is open. | |
| bool | closing_ {false} |
| Whether a new run waits for the old run's open orders to be accounted for: not opened yet (Runner::run_recovery says when it is). | |
| bool | resumed_ {false} |
| Whether a run found in the journal was resumed; false for a new run. | |
| std::string | id_ |
| The run's id. | |
| std::optional< Money > | cash_ |
| The run's cash once open. | |
| std::size_t | transfers_applied_ {0} |
| How many transfers were written now. | |
| bool | budget_used_ {false} |
| Whether strategy::RiskLimits::run_budget_ was used: only a new run opens with it. | |
| RunRefusal | refusal_ {RunRefusal::NONE} |
| Why the run did not open; every kind but NO_RUN halts (LOCAL_FAILURE) and stops its writes. | |
| std::string | refused_ |
| Why the run did not open, for the operator; empty when it did. | |
How recovery opened a budgeted runner's run, or why it did not (RecoveryReport::run_).
Definition at line 88 of file run_ledger.hpp.
| bool algotradelib::runner::RunRecoverySummary::budget_used_ {false} |
Whether strategy::RiskLimits::run_budget_ was used: only a new run opens with it.
Definition at line 105 of file run_ledger.hpp.
| std::optional<Money> algotradelib::runner::RunRecoverySummary::cash_ |
The run's cash once open.
Definition at line 101 of file run_ledger.hpp.
| bool algotradelib::runner::RunRecoverySummary::closing_ {false} |
Whether a new run waits for the old run's open orders to be accounted for: not opened yet (Runner::run_recovery says when it is).
Definition at line 95 of file run_ledger.hpp.
| std::string algotradelib::runner::RunRecoverySummary::id_ |
The run's id.
Definition at line 99 of file run_ledger.hpp.
| bool algotradelib::runner::RunRecoverySummary::opened_ {false} |
Whether the run is open.
Definition at line 90 of file run_ledger.hpp.
| RunRefusal algotradelib::runner::RunRecoverySummary::refusal_ {RunRefusal::NONE} |
Why the run did not open; every kind but NO_RUN halts (LOCAL_FAILURE) and stops its writes.
Definition at line 107 of file run_ledger.hpp.
| std::string algotradelib::runner::RunRecoverySummary::refused_ |
Why the run did not open, for the operator; empty when it did.
Definition at line 109 of file run_ledger.hpp.
| bool algotradelib::runner::RunRecoverySummary::resumed_ {false} |
Whether a run found in the journal was resumed; false for a new run.
Definition at line 97 of file run_ledger.hpp.
| std::size_t algotradelib::runner::RunRecoverySummary::transfers_applied_ {0} |
How many transfers were written now.
Definition at line 103 of file run_ledger.hpp.