algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::BuyingPower Struct Reference

What the broker says may be spent, in one currency. More...

#include <algotradelib/src/core/types.hpp>

Collaboration diagram for algotradelib::BuyingPower:

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).

Detailed Description

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.

Definition at line 1126 of file types.hpp.

Member Data Documentation

◆ cash_

Money algotradelib::BuyingPower::cash_

The amount that may be spent.

Definition at line 1128 of file types.hpp.

◆ received_at_

std::chrono::system_clock::time_point algotradelib::BuyingPower::received_at_ {}

When the figure was received, on this machine's clock (brokers do not timestamp it).

In a backtest, the snapshot time.

Definition at line 1134 of file types.hpp.


The documentation for this struct was generated from the following file: