![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
One execution of an order the strategy placed, delivered to on_fill. More...
#include <algotradelib/src/strategy/event.hpp>
Public Attributes | |
| std::string | order_id_ |
| The broker's order id. | |
| InstrumentId | instrument_ |
| The instrument traded. | |
| OrderSide | side_ {OrderSide::BUY} |
| The side of the order. | |
| Decimal64 | quantity_ |
| The quantity of this execution, not the order's running total. | |
| Decimal64 | price_ |
| The execution price. | |
| std::string | tag_ |
| The tag of the intent that produced the order. | |
| std::chrono::system_clock::time_point | at_ {} |
| When the execution happened. | |
One execution of an order the strategy placed, delivered to on_fill.
Each execution is its own event, so a partial fill arrives as several; quantity_ is this execution's quantity, and the order's running total is in the portfolio. order_id_ names the order by the broker's id where the source states one; a replay's fills leave it empty, and live, on_fill does not fire (Runner::on_fill_never_fires). Look orders up in ctx.portfolio().
| std::chrono::system_clock::time_point algotradelib::strategy::Fill::at_ {} |
| std::string algotradelib::strategy::Fill::order_id_ |
| OrderSide algotradelib::strategy::Fill::side_ {OrderSide::BUY} |
| std::string algotradelib::strategy::Fill::tag_ |