IPWorks OFX 2020 Node.js Edition

Questions / Feedback?

TxType Property

This is the type of transaction that was made on the account.

Syntax

 invstatement.getTxType(index, [callback])

Possible Values

  0 (ittBUYDEBT), 
  1 (ittBUYMF), 
  2 (ittBUYOPT), 
  3 (ittBUYOTHER), 
  4 (ittBUYSTOCK), 
  5 (ittCLOSUREOPT), 
  6 (ittINCOME), 
  7 (ittINVEXPENSE), 
  8 (ittJRNLFUND), 
  9 (ittJRNLSEC), 
  10 (ittMARGININTEREST), 
  11 (ittREINVEST), 
  12 (ittRETOFCAP), 
  13 (ittSELLDEBT), 
  14 (ittSELLMF), 
  15 (ittSELLOPT), 
  16 (ittSELLOTHER), 
  17 (ittSELLSTOCK), 
  18 (ittSPLIT), 
  19 (ittTRANSFERS), 
  20 (ittINVBANKTRAN), 
  255 (ittOTHER)

Default Value

0

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getTxType([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setTxType([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This is the type of transaction that was made on the account. Checks, electronic funds transfers, and ATM transactions associated with CMA or money market sweep accounts are always represented with a bank transaction record.

Investment actions that involve securities (buy, sell, stock split, reinvest, etc.) are always represented with an investment record. Actions that are cash-only but are directly associated with a security are also investment actions (for example, dividends).

Other cash-only actions require careful analysis by the FI. Those that affect investment performance analysis should be sent using the appropriate investment action (investment income - miscellaneous, investment expense). Those that are completely unrelated to investment should be sent as a bank record.

The types and their meanings are as follows:

ittBUYDEBT (0)Buy debt security
ittBUYMF (1)Buy mutual fund (being switched to).
ittBUYOPT (2)Buy option.
ittBUYOTHER (3)Buy other security type
ittBUYSTOCK (4)Buy stock.
ittCLOSUREOPT (5)Close a position for an option.
ittINCOME (6)Investment income is realized as cash into the investment account. A negative TOTAL is used to denote adjustments to income.
ittINVEXPENSE (7)Misc. investment expense that is associated with a specific security.
ittJRNLFUND (8)Journaling cash holdings between sub-accounts within the same investment account.
ittJRNLSEC (9)Journaling security holdings between sub-accounts within the same investment account.
ittMARGININTEREST (10)Margin interest expense
ittREINVEST (11)Reinvestment of income
ittRETOFCAP (12)Return of capital
ittSELLDEBT (13)Sell debt security. Used when debt is sold, called, or reached maturity.
ittSELLMF (14)Sell mutual fund (being switched from).
ittSELLOPT (15)Sell option.
ittSELLOTHER (16)Sell other type of security
ittSELLSTOCK (17)Sell stock
ittSPLIT (18)Stock or Mutual Fund Split. (Note: the trade date is interpreted as the 'day of record' for the split.)
ittTRANSFERS (19)Transfer holdings in and out of the investment account.
ittINVBANKTRAN (20)Banking related transactions for the investment account.
ittOTHER (255)Other

The index parameter specifies the index of the item in the array. The size of the array is controlled by the TxCount property.

This property is read-only and not available at design time.

Data Type

Integer

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks OFX 2020 Node.js Edition - Version 20.0 [Build 7941]