![]() |
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_ {} |
When the execution happened.
Definition at line 421 of file event.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().
| InstrumentId algotradelib::strategy::Fill::instrument_ |
The instrument traded.
Definition at line 411 of file event.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().
| std::string algotradelib::strategy::Fill::order_id_ |
| Decimal64 algotradelib::strategy::Fill::price_ |
The execution price.
Definition at line 417 of file event.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().
| Decimal64 algotradelib::strategy::Fill::quantity_ |
The quantity of this execution, not the order's running total.
Definition at line 415 of file event.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().
| OrderSide algotradelib::strategy::Fill::side_ {OrderSide::BUY} |
The side of the order.
Definition at line 413 of file event.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().
| std::string algotradelib::strategy::Fill::tag_ |
The tag of the intent that produced the order.
Definition at line 419 of file event.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().