An abstraction of a security position held in an account.
More...
#include <libofx.h>
An abstraction of a security position held in an account.
The OfxPositionData structure is used to hold the position information inside a OfxPositionContainer class for investment positions.
Definition at line 1172 of file libofx.h.
◆ HeldInAccountType
The HELDINACCT subaccount type, OFX entry will be one of CASH, MARGIN, SHORT, OTHER
| Enumerator |
|---|
| OFX_HELDINACCT_CASH | A cash account
|
| OFX_HELDINACCT_MARGIN | A margin account
|
| OFX_HELDINACCT_SHORT | A short account
|
| OFX_HELDINACCT_OTHER | An "other" account
|
Definition at line 1198 of file libofx.h.
◆ Inv401kPosnSource
<INV401KSOURCE> For 401(k) accounts, source of the money used for this security
Definition at line 1242 of file libofx.h.
◆ PositionType
The position type, either SHORT or LONG
Definition at line 1208 of file libofx.h.
◆ account_id
| char OfxPositionData::account_id[OFX_ACCOUNT_ID_LENGTH] |
Account for the position Use this for matching with the relevant account in your application
Definition at line 1175 of file libofx.h.
◆ account_id_valid
| int OfxPositionData::account_id_valid |
◆ account_ptr
◆ amounts_are_foreign_currency
| int OfxPositionData::amounts_are_foreign_currency |
Whether the amounts have already been converted to the default currency. An <ORIGCURRENCY> sets the flag to true, i.e. the amounts are reported in the foreign currency. A <CURRENCY> element sets the flag to false.
Definition at line 1265 of file libofx.h.
◆ amounts_are_foreign_currency_valid
| int OfxPositionData::amounts_are_foreign_currency_valid |
◆ currency
| char OfxPositionData::currency[OFX_CURRENCY_LENGTH] |
<CURSYM> The currency is a string in ISO-4217 format
Definition at line 1255 of file libofx.h.
◆ currency_ratio
| double OfxPositionData::currency_ratio |
Ratio of <CURDEF> currency to <CURSYM> currency
Definition at line 1259 of file libofx.h.
◆ currency_ratio_valid
| int OfxPositionData::currency_ratio_valid |
◆ currency_valid
| int OfxPositionData::currency_valid |
◆ date_unit_price
| time_t OfxPositionData::date_unit_price |
Date and time of unit price and market value
Definition at line 1228 of file libofx.h.
◆ date_unit_price_valid
| int OfxPositionData::date_unit_price_valid |
◆ heldinaccount_type_valid
| int OfxPositionData::heldinaccount_type_valid |
◆ inv_401k_source_valid
| int OfxPositionData::inv_401k_source_valid |
◆ market_value
| double OfxPositionData::market_value |
Market value of this position
Definition at line 1224 of file libofx.h.
◆ market_value_valid
| int OfxPositionData::market_value_valid |
◆ memo
| char OfxPositionData::memo[OFX_MEMO_LENGTH] |
◆ memo_valid
| int OfxPositionData::memo_valid |
◆ position_type_valid
| int OfxPositionData::position_type_valid |
◆ security_data_ptr
Pointer to the security data, if found, for convenience of the libofx user A pointer to the security's data.
Definition at line 1269 of file libofx.h.
◆ security_data_valid
| int OfxPositionData::security_data_valid |
◆ unique_id
| char OfxPositionData::unique_id[OFX_UNIQUE_ID_LENGTH] |
The id of the security held. Mandatory for investment positions
Definition at line 1190 of file libofx.h.
◆ unique_id_type
| char OfxPositionData::unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH] |
Usially "CUSIP" for FIs in north america
Definition at line 1192 of file libofx.h.
◆ unique_id_type_valid
| int OfxPositionData::unique_id_type_valid |
◆ unique_id_valid
| int OfxPositionData::unique_id_valid |
◆ unit_price
| double OfxPositionData::unit_price |
Bonds=of par; options=premium per share of underlying stock; all others=price per share
Definition at line 1220 of file libofx.h.
◆ unit_price_valid
| int OfxPositionData::unit_price_valid |
◆ units
| double OfxPositionData::units |
Bonds=face value; options=contracts, all others=shares
Definition at line 1216 of file libofx.h.
◆ units_valid
| int OfxPositionData::units_valid |
The documentation for this struct was generated from the following file: