![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
An exact amount of money in one currency. More...
#include <algotradelib/src/core/types.hpp>
Public Attributes | |
| Decimal64 | amount_ |
| The amount. | |
| Currency | currency_ |
| The currency; the library never adds amounts in different currencies. | |
Friends | |
| bool | operator== (const Money &lhs, const Money &rhs) |
| Compares amount (with Decimal64::operator==) and currency. | |
Compares amount (with Decimal64::operator==) and currency.
| lhs | The first amount. |
| rhs | The second amount. |
| Decimal64 algotradelib::Money::amount_ |
The amount.
Definition at line 897 of file types.hpp.
Referenced by algotradelib::runner::ChargedCosts::add(), operator==, algotradelib::strategy::reconcile(), and algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::set_portfolio_value().
| Currency algotradelib::Money::currency_ |
The currency; the library never adds amounts in different currencies.
Definition at line 899 of file types.hpp.
Referenced by algotradelib::runner::ChargedCosts::add(), operator==, and algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::set_portfolio_value().