![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
What to send: first every cancellation, then every placement. More...
#include <algotradelib/src/strategy/reconcile.hpp>
Public Member Functions | |
| bool | empty () const noexcept |
| Tests whether the plan is empty. | |
Public Attributes | |
| std::vector< OrderRef< Broker > > | cancel_ |
| The orders to cancel, sent first. | |
| std::vector< PlannedOrder > | place_ |
| The orders to place, after the cancellations. | |
| std::vector< Rejection > | rejected_ |
| The instructions not placed, with reasons. | |
What to send: first every cancellation, then every placement.
Send the cancellations first; placing a replacement before its predecessor is withdrawn would briefly double the position.
| Broker | The broker tag of the order references. |
Definition at line 201 of file reconcile.hpp.
|
inlinenoexcept |
Tests whether the plan is empty.
Definition at line 213 of file reconcile.hpp.
| std::vector<OrderRef<Broker> > algotradelib::strategy::Plan< Broker >::cancel_ |
The orders to cancel, sent first.
Definition at line 203 of file reconcile.hpp.
Referenced by empty(), and algotradelib::strategy::reconcile().
| std::vector<PlannedOrder> algotradelib::strategy::Plan< Broker >::place_ |
The orders to place, after the cancellations.
Definition at line 205 of file reconcile.hpp.
Referenced by empty(), algotradelib::strategy::reconcile(), and algotradelib::strategy::reconcile().
| std::vector<Rejection> algotradelib::strategy::Plan< Broker >::rejected_ |
The instructions not placed, with reasons.
Definition at line 207 of file reconcile.hpp.
Referenced by empty(), algotradelib::strategy::reconcile(), and algotradelib::strategy::reconcile().