![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
What the broker says may be spent, in one currency. More...
#include <algotradelib/src/core/types.hpp>
Public Attributes | |
| Money | cash_ |
| The amount that may be spent. | |
| std::chrono::system_clock::time_point | received_at_ {} |
| When the figure was received, on this machine's clock (brokers do not timestamp it). | |
What the broker says may be spent, in one currency.
The broker's own figure (Toss cashBuyingPower, KIS nrcvb_buy_amt): it counts unsettled proceeds on the broker's terms, excludes amounts reserved for resting orders, and includes no credit. It is not the library's own Portfolio::cash_. In a backtest the ledger fills it with modelled cash.
| Money algotradelib::BuyingPower::cash_ |
| std::chrono::system_clock::time_point algotradelib::BuyingPower::received_at_ {} |