![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The commission rate that charged an execution, as the backtest report lists it. More...
#include <algotradelib/src/backtest/cost.hpp>
Public Attributes | |
| Country | country_ {Country::KR} |
| The market the rate was selected for. | |
| VenueKey | venue_ |
| The venue the rate was keyed to. | |
| Decimal64 | rate_ |
| The broker's commission, as a fraction of traded value. | |
| std::optional< Decimal64 > | institution_rate_ |
| The institution fee rate; empty if the source gave one combined rate. | |
| Decimal64 | minimum_ {Decimal64::parse("0")} |
| The per-execution minimum on the broker's commission; zero if none. | |
| std::optional< Date > | from_ |
| The first date of the rate's window; empty if open-ended. | |
| std::optional< Date > | until_ |
| The last date of the rate's window; empty if open-ended. | |
| CommissionOrigin | origin_ {CommissionOrigin::CALLER_STATED} |
| Whether a broker published the rate or a caller stated it. | |
| std::size_t | executions_ {0} |
| How many executions the rate charged, counted in the report's table. | |
Friends | |
| bool | operator== (const AppliedRate &lhs, const AppliedRate &rhs) |
| Compares every field except executions_. | |
The commission rate that charged an execution, as the backtest report lists it.
|
friend |
Compares every field except executions_.
| lhs | The first rate. |
| rhs | The second rate. |
| Country algotradelib::backtest::AppliedRate::country_ {Country::KR} |
The market the rate was selected for.
Definition at line 126 of file cost.hpp.
Referenced by algotradelib::backtest::CommissionPolicy::charge(), and operator==.
| std::size_t algotradelib::backtest::AppliedRate::executions_ {0} |
| std::optional<Date> algotradelib::backtest::AppliedRate::from_ |
The first date of the rate's window; empty if open-ended.
Definition at line 136 of file cost.hpp.
Referenced by algotradelib::backtest::CommissionPolicy::charge(), and operator==.
| std::optional<Decimal64> algotradelib::backtest::AppliedRate::institution_rate_ |
The institution fee rate; empty if the source gave one combined rate.
Definition at line 132 of file cost.hpp.
Referenced by algotradelib::backtest::CommissionPolicy::charge(), and operator==.
| Decimal64 algotradelib::backtest::AppliedRate::minimum_ {Decimal64::parse("0")} |
The per-execution minimum on the broker's commission; zero if none.
Definition at line 134 of file cost.hpp.
Referenced by algotradelib::backtest::CommissionPolicy::charge(), and operator==.
| CommissionOrigin algotradelib::backtest::AppliedRate::origin_ {CommissionOrigin::CALLER_STATED} |
Whether a broker published the rate or a caller stated it.
Definition at line 140 of file cost.hpp.
Referenced by algotradelib::backtest::CommissionPolicy::charge(), and operator==.
| Decimal64 algotradelib::backtest::AppliedRate::rate_ |
The broker's commission, as a fraction of traded value.
Definition at line 130 of file cost.hpp.
Referenced by algotradelib::backtest::CommissionPolicy::charge(), and operator==.
| std::optional<Date> algotradelib::backtest::AppliedRate::until_ |
The last date of the rate's window; empty if open-ended.
Definition at line 138 of file cost.hpp.
Referenced by algotradelib::backtest::CommissionPolicy::charge(), and operator==.
| VenueKey algotradelib::backtest::AppliedRate::venue_ |
The venue the rate was keyed to.
Definition at line 128 of file cost.hpp.
Referenced by algotradelib::backtest::CommissionPolicy::charge(), and operator==.