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

An account's positions and per-currency totals at one point in time. More...

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

Collaboration diagram for algotradelib::HoldingsSnapshot:

Public Attributes

std::vector< HoldingPosition > positions_
 Every position row; one instrument may appear in more than one.
std::vector< HoldingsTotals > totals_
 One totals row per currency held.
std::chrono::system_clock::time_point received_at_
 When this process received the snapshot (brokers do not timestamp holdings).
SellableBasis sellable_basis_
 What the rows' sellable_quantity_ figures cover (unless a row carries its own).

Detailed Description

An account's positions and per-currency totals at one point in time.

Definition at line 1345 of file types.hpp.

Member Data Documentation

◆ positions_

std::vector<HoldingPosition> algotradelib::HoldingsSnapshot::positions_

Every position row; one instrument may appear in more than one.

Definition at line 1347 of file types.hpp.

Referenced by algotradelib::mock::Market::holdings().

◆ received_at_

std::chrono::system_clock::time_point algotradelib::HoldingsSnapshot::received_at_

When this process received the snapshot (brokers do not timestamp holdings).

Definition at line 1351 of file types.hpp.

Referenced by algotradelib::mock::Market::holdings().

◆ sellable_basis_

SellableBasis algotradelib::HoldingsSnapshot::sellable_basis_

What the rows' sellable_quantity_ figures cover (unless a row carries its own).

Defaults to unestablished, so an adapter that fills sellable quantities without stating this has its sells refused.

Definition at line 1358 of file types.hpp.

Referenced by algotradelib::mock::Market::holdings().

◆ totals_

std::vector<HoldingsTotals> algotradelib::HoldingsSnapshot::totals_

One totals row per currency held.

Definition at line 1349 of file types.hpp.

Referenced by algotradelib::mock::Market::holdings().


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