![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
An executor that sends nothing and records what it was given (the dry run's default). More...
#include <algotradelib/src/runner/execution.hpp>
Public Member Functions | |
| SendOutcome | place (const strategy::PlannedOrder &order) |
| Records a placement. | |
| SendOutcome | cancel (const WorkingOrder< BrokerTag > &working) |
| Records a cancellation. | |
| const std::vector< strategy::PlannedOrder > & | placed () const noexcept |
| Returns every placement recorded. | |
| const std::vector< OrderRef< BrokerTag > > & | canceled () const noexcept |
| Returns every cancellation recorded. | |
Static Public Attributes | |
| static constexpr bool | reaches_a_broker = false |
| false: a dry run reaches no broker, so the runner does not require a read account. | |
An executor that sends nothing and records what it was given (the dry run's default).
Every instruction is ACCEPTED.
| BrokerTag | The broker tag. |
Definition at line 612 of file execution.hpp.
|
inline |
Records a cancellation.
| working | The order. |
Definition at line 632 of file execution.hpp.
|
inlinenoexcept |
Returns every cancellation recorded.
Definition at line 647 of file execution.hpp.
|
inline |
Records a placement.
| order | The order. |
Definition at line 622 of file execution.hpp.
|
inlinenoexcept |
Returns every placement recorded.
Definition at line 641 of file execution.hpp.
|
staticconstexpr |
false: a dry run reaches no broker, so the runner does not require a read account.
Definition at line 616 of file execution.hpp.