An abstraction of a security, such as a stock, mutual fund, etc.
More...
#include <libofx.h>
|
The OFX spec defines the following elements as optional. If the associated *_valid is true, the corresponding element is present and the associated variable contains valid data.
|
| enum | AssetClass {
OFX_ASSET_CLASS_DOMESTICBOND
, OFX_ASSET_CLASS_INTLBOND
, OFX_ASSET_CLASS_LARGESTOCK
, OFX_ASSET_CLASS_SMALLSTOCK
,
OFX_ASSET_CLASS_INTLSTOCK
, OFX_ASSET_CLASS_MONEYMRKT
, OFX_ASSET_CLASS_OTHER
} |
|
enum OfxSecurityData::AssetClass | asset_class |
| int | asset_class_valid |
| char | fiasset_class [OFX_FIASSET_CLASS_LENGTH] |
| int | fiasset_class_valid |
|
The OFX spec defines the following elements as optional. If the associated *_valid is true, the corresponding element is present and the associated variable contains valid data.
|
| enum | DebtClass { OFX_DEBTCLASS_TREASURY
, OFX_DEBTCLASS_MUNICIPAL
, OFX_DEBTCLASS_CORPORATE
, OFX_DEBTCLASS_OTHER
} |
| enum | CouponFreq {
OFX_COUPON_FREQ_MONTHLY
, OFX_COUPON_FREQ_QUARTERLY
, OFX_COUPON_FREQ_SEMIANNUAL
, OFX_COUPON_FREQ_ANNUAL
,
OFX_COUPON_FREQ_OTHER
} |
| enum | CallType { OFX_CALL_TYPE_CALL
, OFX_CALL_TYPE_PUT
, OFX_CALL_TYPE_PREFUND
, OFX_CALL_TYPE_MATURITY
} |
|
enum OfxSecurityData::DebtClass | debt_class |
| int | debt_class_valid |
| double | coupon_rate |
| int | coupon_rate_valid |
| time_t | date_coupon |
| int | date_coupon_valid |
|
enum OfxSecurityData::CouponFreq | coupon_freq |
| int | coupon_freq_valid |
| double | call_price |
| int | call_price_valid |
| double | yield_to_call |
| int | yield_to_call_valid |
| time_t | call_date |
| int | call_date_valid |
|
enum OfxSecurityData::CallType | call_type |
| int | call_type_valid |
| double | yield_to_maturity |
| int | yield_to_maturity_valid |
| time_t | maturity_date |
| int | maturity_date_valid |
An abstraction of a security, such as a stock, mutual fund, etc.
The OfxSecurityData structure is used to hold the security information inside a OfxTransactionData struct for investment transactions.
Definition at line 369 of file libofx.h.
◆ AssetClass
◆ CallType
Type of the next call
Definition at line 559 of file libofx.h.
◆ CouponFreq
When the coupon matures
Definition at line 536 of file libofx.h.
◆ DebtClass
◆ DebtType
◆ MutalFundType
Type of mutual fund
Definition at line 469 of file libofx.h.
◆ OptionType
Type of option
Definition at line 582 of file libofx.h.
◆ SecurityType
The type of the security, OFX entry will be one of DEBTINFO, MFINFO, OPTINFO, OTHERINFO, STOCKINFO
| Enumerator |
|---|
| OFX_DEBT_SECURITY | A <DEBTINFO>
|
| OFX_FUND_SECURITY | A <MFINFO>
|
| OFX_OPTION_SECURITY | A <OPTINFO>
|
| OFX_STOCK_SECURITY | A <STOCKINFO>
|
| OFX_OTHER_SECURITY | A <OTHERINFO>
|
Definition at line 373 of file libofx.h.
◆ StockType
◆ amounts_are_foreign_currency
| int OfxSecurityData::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 430 of file libofx.h.
◆ amounts_are_foreign_currency_valid
| int OfxSecurityData::amounts_are_foreign_currency_valid |
◆ asset_class_valid
| int OfxSecurityData::asset_class_valid |
◆ call_date
| time_t OfxSecurityData::call_date |
Next call date
Definition at line 555 of file libofx.h.
◆ call_date_valid
| int OfxSecurityData::call_date_valid |
◆ call_price
| double OfxSecurityData::call_price |
Unit price if called
Definition at line 547 of file libofx.h.
◆ call_price_valid
| int OfxSecurityData::call_price_valid |
◆ call_type_valid
| int OfxSecurityData::call_type_valid |
◆ coupon_freq_valid
| int OfxSecurityData::coupon_freq_valid |
◆ coupon_rate
| double OfxSecurityData::coupon_rate |
Bond coupon rate for the next closest call date
Definition at line 528 of file libofx.h.
◆ coupon_rate_valid
| int OfxSecurityData::coupon_rate_valid |
◆ currency
| char OfxSecurityData::currency[OFX_CURRENCY_LENGTH] |
The currency is a string in ISO-4217 format. It overrides the one defined in the statement for the unit price
Definition at line 420 of file libofx.h.
◆ currency_ratio
| double OfxSecurityData::currency_ratio |
ratio of <CURDEF> currency to <CURSYM> currency
Definition at line 424 of file libofx.h.
◆ currency_ratio_valid
| int OfxSecurityData::currency_ratio_valid |
◆ currency_valid
| int OfxSecurityData::currency_valid |
◆ date_coupon
| time_t OfxSecurityData::date_coupon |
Date of the next coupon
Definition at line 532 of file libofx.h.
◆ date_coupon_valid
| int OfxSecurityData::date_coupon_valid |
◆ date_expire
| time_t OfxSecurityData::date_expire |
Option expiration date
Definition at line 594 of file libofx.h.
◆ date_expire_valid
| int OfxSecurityData::date_expire_valid |
◆ date_unitprice
| time_t OfxSecurityData::date_unitprice |
The date as of which the unit price was valid.
Definition at line 415 of file libofx.h.
◆ date_unitprice_valid
| int OfxSecurityData::date_unitprice_valid |
◆ debt_class_valid
| int OfxSecurityData::debt_class_valid |
◆ debt_type_valid
| int OfxSecurityData::debt_type_valid |
◆ fiasset_class
| char OfxSecurityData::fiasset_class[OFX_FIASSET_CLASS_LENGTH] |
Text string for FI defined assest class
Definition at line 460 of file libofx.h.
◆ fiasset_class_valid
| int OfxSecurityData::fiasset_class_valid |
◆ fiid
| char OfxSecurityData::fiid[OFX_FIID_LENGTH] |
Financial Institution ID number for this security
Definition at line 438 of file libofx.h.
◆ fiid_valid
| int OfxSecurityData::fiid_valid |
◆ maturity_date
| time_t OfxSecurityData::maturity_date |
Date of maturity
Definition at line 573 of file libofx.h.
◆ maturity_date_valid
| int OfxSecurityData::maturity_date_valid |
◆ memo
| char OfxSecurityData::memo[OFX_MEMO2_LENGTH] |
Extra information not included in name
Definition at line 433 of file libofx.h.
◆ memo_valid
| int OfxSecurityData::memo_valid |
◆ mutual_fund_type_valid
| int OfxSecurityData::mutual_fund_type_valid |
◆ option_type_valid
| int OfxSecurityData::option_type_valid |
◆ par_value
| double OfxSecurityData::par_value |
Par value of the debt instrument
Definition at line 501 of file libofx.h.
◆ par_value_valid
| int OfxSecurityData::par_value_valid |
◆ rating
| char OfxSecurityData::rating[OFX_SECURITY_RATING_LENGTH] |
The rating for the security
Definition at line 412 of file libofx.h.
◆ rating_valid
| int OfxSecurityData::rating_valid |
◆ secname
| char OfxSecurityData::secname[OFX_SECNAME_LENGTH] |
The full name of the security
Definition at line 397 of file libofx.h.
◆ secname_valid
| int OfxSecurityData::secname_valid |
◆ security_type_valid
| int OfxSecurityData::security_type_valid |
◆ shares_per_cont
| double OfxSecurityData::shares_per_cont |
Shares per contract
Definition at line 598 of file libofx.h.
◆ shares_per_cont_valid
| int OfxSecurityData::shares_per_cont_valid |
◆ stock_type_valid
| int OfxSecurityData::stock_type_valid |
◆ strike_price
| double OfxSecurityData::strike_price |
Option strike price
Definition at line 590 of file libofx.h.
◆ strike_price_valid
| int OfxSecurityData::strike_price_valid |
◆ ticker
| char OfxSecurityData::ticker[OFX_TICKER_LENGTH] |
The ticker symbol of the security
Definition at line 405 of file libofx.h.
◆ ticker_valid
| int OfxSecurityData::ticker_valid |
◆ unique_id
| char OfxSecurityData::unique_id[OFX_UNIQUE_ID_LENGTH] |
The id of the security being traded.
Definition at line 390 of file libofx.h.
◆ unique_id2
| char OfxSecurityData::unique_id2[OFX_UNIQUE_ID_LENGTH] |
The id of the underlying security. has the same <UNIQUEID> tag, give the field a different name
Definition at line 608 of file libofx.h.
◆ unique_id2_type
| char OfxSecurityData::unique_id2_type[OFX_UNIQUE_ID_TYPE_LENGTH] |
The id type of the underlying security. has the same <UNIQUEIDTYPE> tag, give the field a different name
Definition at line 613 of file libofx.h.
◆ unique_id2_type_valid
| int OfxSecurityData::unique_id2_type_valid |
◆ unique_id2_valid
| int OfxSecurityData::unique_id2_valid |
◆ unique_id_type
| char OfxSecurityData::unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH] |
Usially "CUSIP" for FIs in north america
Definition at line 393 of file libofx.h.
◆ unique_id_type_valid
| int OfxSecurityData::unique_id_type_valid |
◆ unique_id_valid
| int OfxSecurityData::unique_id_valid |
◆ unitprice
| double OfxSecurityData::unitprice |
The price of each unit of the security, as of date_unitprice
Definition at line 408 of file libofx.h.
◆ unitprice_valid
| int OfxSecurityData::unitprice_valid |
◆ yield
| double OfxSecurityData::yield |
For <MFINFO>, current yield reported as portion of the fund's assests. For <STOCKINFO>, dividend expressed as a portion of the current stock price.
Definition at line 489 of file libofx.h.
◆ yield_asof_date
| time_t OfxSecurityData::yield_asof_date |
The date as of which the yield was valid.
Definition at line 492 of file libofx.h.
◆ yield_asof_date_valid
| int OfxSecurityData::yield_asof_date_valid |
◆ yield_to_call
| double OfxSecurityData::yield_to_call |
Yield to next call
Definition at line 551 of file libofx.h.
◆ yield_to_call_valid
| int OfxSecurityData::yield_to_call_valid |
◆ yield_to_maturity
| double OfxSecurityData::yield_to_maturity |
Yield to maturity
Definition at line 569 of file libofx.h.
◆ yield_to_maturity_valid
| int OfxSecurityData::yield_to_maturity_valid |
◆ yield_valid
| int OfxSecurityData::yield_valid |
The documentation for this struct was generated from the following file: