![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
How a budgeted runner opens its run when runner::recover_runner reads its journal (Runner::set_run_opening). More...
#include <algotradelib/src/runner/run_ledger.hpp>
Public Attributes | |
| bool | resume_ {false} |
| Resume the journal's latest run instead of opening a new one (none: RunRefusal::NO_RUN). | |
| bool | wait_for_open_orders_ {false} |
| For a new run: wait for the old run's open orders to end, instead of cancelling them. | |
| std::vector< RunTransfer > | transfers_ |
| Deposits and withdrawals for a resumed run, each applied once by its id, in order. | |
How a budgeted runner opens its run when runner::recover_runner reads its journal (Runner::set_run_opening).
By default a new run opens with strategy::RiskLimits::run_budget_, labelled by the library. If the journal holds an earlier run, it is closed first: its open orders are cancelled (or waited for), each is accounted for and booked to it as usual, and only then is the new run's opening written. The old run's remaining shares are the account's, not the new run's.
Definition at line 60 of file run_ledger.hpp.
| bool algotradelib::runner::RunOpening::resume_ {false} |
Resume the journal's latest run instead of opening a new one (none: RunRefusal::NO_RUN).
Definition at line 62 of file run_ledger.hpp.
Referenced by algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::set_run_opening().
| std::vector<RunTransfer> algotradelib::runner::RunOpening::transfers_ |
Deposits and withdrawals for a resumed run, each applied once by its id, in order.
Definition at line 66 of file run_ledger.hpp.
Referenced by algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::set_run_opening().
| bool algotradelib::runner::RunOpening::wait_for_open_orders_ {false} |
For a new run: wait for the old run's open orders to end, instead of cancelling them.
Definition at line 64 of file run_ledger.hpp.