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

The broker's holdings totals for one currency. More...

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

Collaboration diagram for algotradelib::HoldingsTotals:

Public Attributes

Currency currency_
 The currency; there is one totals row per currency, never converted.
Decimal64 purchase_value_
 The broker's total cost basis in currency_.
Decimal64 market_value_
 The broker's total market value in currency_, from its summary.
Decimal64 unrealized_profit_loss_
 The broker's total unrealized profit or loss in currency_, from its summary.

Detailed Description

The broker's holdings totals for one currency.

Definition at line 1057 of file types.hpp.

Member Data Documentation

◆ currency_

Currency algotradelib::HoldingsTotals::currency_

The currency; there is one totals row per currency, never converted.

Definition at line 1059 of file types.hpp.

◆ market_value_

Decimal64 algotradelib::HoldingsTotals::market_value_

The broker's total market value in currency_, from its summary.

Definition at line 1068 of file types.hpp.

◆ purchase_value_

Decimal64 algotradelib::HoldingsTotals::purchase_value_

The broker's total cost basis in currency_.

From the broker's summary, not summed from the positions; the two can differ when the positions were paged.

Definition at line 1066 of file types.hpp.

◆ unrealized_profit_loss_

Decimal64 algotradelib::HoldingsTotals::unrealized_profit_loss_

The broker's total unrealized profit or loss in currency_, from its summary.

Definition at line 1070 of file types.hpp.


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