libofx-0.9.10/inc/libofx.h
Go to the documentation of this file.
/*-*-c-*-*******************************************************************
libofx.h - Main header file for the libofx API
-------------------
copyright : (C) 2002-2011 by Benoit Grégoire
email : benoitg@coeus.ca
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LIBOFX_H
#define LIBOFX_H
#include <time.h>
#define LIBOFX_MAJOR_VERSION 0
#define LIBOFX_MINOR_VERSION 9
#define LIBOFX_MICRO_VERSION 10
#define LIBOFX_BUILD_VERSION 0
#define LIBOFX_VERSION_RELEASE_STRING "0.9.10"
#ifdef IN_LIBOFX
# include "config.h"
# ifdef HAVE_GCC_VISIBILITY_EXTS
# pragma GCC visibility push(default)
# endif
#endif
#ifdef __cplusplus
extern "C" {
#else
#define true 1
#define false 0
#endif
#define OFX_ELEMENT_NAME_LENGTH 100
#define OFX_SVRTID2_LENGTH (36 + 1)
#define OFX_CHECK_NUMBER_LENGTH (12 + 1)
#define OFX_REFERENCE_NUMBER_LENGTH (32 + 1)
#define OFX_FITID_LENGTH (255 + 1)
#define OFX_TOKEN2_LENGTH (36 + 1)
#define OFX_MEMO_LENGTH (255 + 1)
#define OFX_FIID_LENGTH (32 + 1)
#define OFX_MEMO2_LENGTH (390 + 1)
#define OFX_BALANCE_NAME_LENGTH (32 + 1)
#define OFX_BALANCE_DESCRIPTION_LENGTH (80 + 1)
#define OFX_CURRENCY_LENGTH (3 + 1) /* In ISO-4217 format */
#define OFX_BANKID_LENGTH (9 + 1)
#define OFX_BRANCHID_LENGTH (22 + 1)
#define OFX_ACCTID_LENGTH (22 + 1)
#define OFX_ACCTKEY_LENGTH (22 + 1)
#define OFX_BROKERID_LENGTH (22 + 1)
/* Must be MAX of <BANKID>+<BRANCHID>+<ACCTID>, <ACCTID>+<ACCTKEY> and <ACCTID>+<BROKERID> */
#define OFX_ACCOUNT_ID_LENGTH (OFX_BANKID_LENGTH + OFX_BRANCHID_LENGTH + OFX_ACCTID_LENGTH + 1)
#define OFX_ACCOUNT_NAME_LENGTH 255
#define OFX_MARKETING_INFO_LENGTH (360 + 1)
#define OFX_TRANSACTION_NAME_LENGTH (96 + 1)
#define OFX_UNIQUE_ID_LENGTH (32 + 1)
#define OFX_UNIQUE_ID_TYPE_LENGTH (10 + 1)
#define OFX_SECNAME_LENGTH (32 + 1)
#define OFX_TICKER_LENGTH (32 + 1)
#define OFX_ORG_LENGTH (32 + 1)
#define OFX_FID_LENGTH (32 + 1)
#define OFX_USERID_LENGTH (32 + 1)
#define OFX_USERPASS_LENGTH (32 + 1)
#define OFX_URL_LENGTH (500 + 1)
#define OFX_APPID_LENGTH (32)
#define OFX_APPVER_LENGTH (32)
#define OFX_HEADERVERSION_LENGTH (32)
/*
#define OFX_STATEMENT_CB 0;
#define OFX_ACCOUNT_CB 1;
#define OFX_TRACSACTION_CB 2;
#define OFX_SECURITY_CB 3;
#define OFX_STATUS_CB 4;
*/
typedef void * LibofxContextPtr;
LibofxContextPtr libofx_get_new_context();
int libofx_free_context( LibofxContextPtr );
void libofx_set_dtd_dir(LibofxContextPtr libofx_context,
const char *s);
enum LibofxFileFormat
{
AUTODETECT,
OFX,
OFC,
QIF,
UNKNOWN,
LAST
};
struct LibofxFileFormatInfo
{
enum LibofxFileFormat format;
const char * format_name;
const char * description;
};
#ifndef OFX_AQUAMANIAC_UGLY_HACK1
const struct LibofxFileFormatInfo LibofxImportFormatList[] =
{
{AUTODETECT, "AUTODETECT", "AUTODETECT (File format will be automatically detected later)"},
{OFX, "OFX", "OFX (Open Financial eXchange (OFX or QFX))"},
{OFC, "OFC", "OFC (Microsoft Open Financial Connectivity)"},
{QIF, "QIF", "QIF (Intuit Quicken Interchange Format) NOT IMPLEMENTED"},
{LAST, "LAST", "Not a file format, meant as a loop breaking condition"}
};
const struct LibofxFileFormatInfo LibofxExportFormatList[] =
{
{QIF, "QIF", "QIF (Intuit Quicken Interchange Format) NOT IMPLEMENTED"},
{LAST, "LAST", "Not a file format, meant as a loop breaking condition"}
};
enum LibofxFileFormat libofx_get_file_format_from_str(const struct LibofxFileFormatInfo format_list[], const char * file_type_string);
const char * libofx_get_file_format_description(const struct LibofxFileFormatInfo format_list[], enum LibofxFileFormat file_format);
#endif
int libofx_proc_file(LibofxContextPtr libofx_context,
const char * p_filename,
enum LibofxFileFormat ftype);
struct OfxStatusData
{
char ofx_element_name[OFX_ELEMENT_NAME_LENGTH];
int ofx_element_name_valid;
int code;
const char* name;
const char* description;
int code_valid;
enum Severity
{
INFO,
WARN,
ERROR
} severity;
int severity_valid;
char* server_message;
int server_message_valid;
};
typedef int (*LibofxProcStatusCallback)(const struct OfxStatusData data, void * status_data);
struct OfxAccountData
{
char account_id[OFX_ACCOUNT_ID_LENGTH];
char account_name[OFX_ACCOUNT_NAME_LENGTH];
int account_id_valid;/* Use for both account_id and account_name */
enum AccountType
{
OFX_CHECKING,
OFX_SAVINGS,
OFX_MONEYMRKT,
OFX_CREDITLINE,
OFX_CMA,
OFX_CREDITCARD,
OFX_INVESTMENT
} account_type;
int account_type_valid;
char currency[OFX_CURRENCY_LENGTH];
int currency_valid;
char account_number[OFX_ACCTID_LENGTH];
int account_number_valid;
char bank_id[OFX_BANKID_LENGTH];
int bank_id_valid;
char broker_id[OFX_BROKERID_LENGTH];
int broker_id_valid;
char branch_id[OFX_BRANCHID_LENGTH];
int branch_id_valid;
};
typedef int (*LibofxProcAccountCallback)(const struct OfxAccountData data, void * account_data);
struct OfxSecurityData
{
char unique_id[OFX_UNIQUE_ID_LENGTH];
int unique_id_valid;
char unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH];
int unique_id_type_valid;
char secname[OFX_SECNAME_LENGTH];
int secname_valid;
char ticker[OFX_TICKER_LENGTH];
int ticker_valid;
double unitprice;
int unitprice_valid;
time_t date_unitprice;
int date_unitprice_valid;
char currency[OFX_CURRENCY_LENGTH];
int currency_valid;
char memo[OFX_MEMO2_LENGTH];
int memo_valid;
char fiid[OFX_FIID_LENGTH];
int fiid_valid;
};/* end struct OfxSecurityData */
typedef int (*LibofxProcSecurityCallback)(const struct OfxSecurityData data, void * security_data);
typedef enum
{
OFX_CREDIT,
OFX_DEBIT,
OFX_INT,
OFX_DIV,
OFX_FEE,
OFX_SRVCHG,
OFX_DEP,
OFX_ATM,
OFX_POS,
OFX_XFER,
OFX_CHECK,
OFX_PAYMENT,
OFX_CASH,
OFX_DIRECTDEP,
OFX_DIRECTDEBIT,
OFX_REPEATPMT,
OFX_OTHER
} TransactionType;
typedef enum
{
OFX_BUYDEBT,
OFX_BUYMF,
OFX_BUYOPT,
OFX_BUYOTHER,
OFX_BUYSTOCK,
OFX_CLOSUREOPT,
OFX_INCOME,
OFX_INVEXPENSE,
OFX_JRNLFUND,
OFX_JRNLSEC,
OFX_MARGININTEREST,
OFX_REINVEST,
OFX_RETOFCAP,
OFX_SELLDEBT,
OFX_SELLMF,
OFX_SELLOPT,
OFX_SELLOTHER,
OFX_SELLSTOCK,
OFX_SPLIT,
OFX_TRANSFER
} InvTransactionType;
typedef enum
{
DELETE,
REPLACE
} FiIdCorrectionAction;
struct OfxTransactionData
{
char account_id[OFX_ACCOUNT_ID_LENGTH];
struct OfxAccountData * account_ptr;
int account_id_valid;
TransactionType transactiontype;
int transactiontype_valid;
InvTransactionType invtransactiontype;
int invtransactiontype_valid;
double units;
int units_valid;
double unitprice;
int unitprice_valid;
double amount;
int amount_valid;
char fi_id[256];
int fi_id_valid;
char unique_id[OFX_UNIQUE_ID_LENGTH];
int unique_id_valid;
char unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH];
int unique_id_type_valid;
struct OfxSecurityData *security_data_ptr;
int security_data_valid;
time_t date_posted;
int date_posted_valid;
time_t date_initiated;
int date_initiated_valid;
time_t date_funds_available;
int date_funds_available_valid;
char fi_id_corrected[256];
int fi_id_corrected_valid;
FiIdCorrectionAction fi_id_correction_action;
int fi_id_correction_action_valid;
char server_transaction_id[OFX_SVRTID2_LENGTH];
int server_transaction_id_valid;
char check_number[OFX_CHECK_NUMBER_LENGTH];
int check_number_valid;
char reference_number[OFX_REFERENCE_NUMBER_LENGTH];
int reference_number_valid;
long int standard_industrial_code;
int standard_industrial_code_valid;
char payee_id[OFX_SVRTID2_LENGTH];
int payee_id_valid;
char name[OFX_TRANSACTION_NAME_LENGTH];
int name_valid;
char memo[OFX_MEMO2_LENGTH];
int memo_valid;
double commission;
int commission_valid;
double fees;
int fees_valid;
double oldunits; /*number of units held before stock split */
int oldunits_valid;
double newunits; /*number of units held after stock split */
int newunits_valid;
/*********** NOT YET COMPLETE!!! *********************/
};
typedef int (*LibofxProcTransactionCallback)(const struct OfxTransactionData data, void * transaction_data);
struct OfxStatementData
{
char currency[OFX_CURRENCY_LENGTH];
int currency_valid;
char account_id[OFX_ACCOUNT_ID_LENGTH];
struct OfxAccountData * account_ptr;
int account_id_valid;
double ledger_balance;
int ledger_balance_valid;
time_t ledger_balance_date;
int ledger_balance_date_valid;
double available_balance;
int available_balance_valid;
time_t available_balance_date;
int available_balance_date_valid;
time_t date_start;
int date_start_valid;
time_t date_end;
int date_end_valid;
char marketing_info[OFX_MARKETING_INFO_LENGTH];
int marketing_info_valid;
};
typedef int (*LibofxProcStatementCallback)(const struct OfxStatementData data, void * statement_data);
struct OfxCurrency
{
char currency[OFX_CURRENCY_LENGTH];
double exchange_rate;
int must_convert;
};
void ofx_set_status_cb(LibofxContextPtr ctx,
LibofxProcStatusCallback cb,
void *user_data);
void ofx_set_account_cb(LibofxContextPtr ctx,
LibofxProcAccountCallback cb,
void *user_data);
void ofx_set_security_cb(LibofxContextPtr ctx,
LibofxProcSecurityCallback cb,
void *user_data);
void ofx_set_transaction_cb(LibofxContextPtr ctx,
LibofxProcTransactionCallback cb,
void *user_data);
void ofx_set_statement_cb(LibofxContextPtr ctx,
LibofxProcStatementCallback cb,
void *user_data);
int libofx_proc_buffer(LibofxContextPtr ctx,
const char *s, unsigned int size);
/* **************************************** */
struct OfxFiServiceInfo
{
char fid[OFX_FID_LENGTH];
char org[OFX_ORG_LENGTH];
char url[OFX_URL_LENGTH];
int accountlist;
int statements;
int billpay;
int investments;
};
struct OfxFiLogin
{
char fid[OFX_FID_LENGTH];
char org[OFX_ORG_LENGTH];
char userid[OFX_USERID_LENGTH];
char userpass[OFX_USERPASS_LENGTH];
char header_version[OFX_HEADERVERSION_LENGTH];
char appid[OFX_APPID_LENGTH];
char appver[OFX_APPVER_LENGTH];
};
#define OFX_AMOUNT_LENGTH (32 + 1)
#define OFX_PAYACCT_LENGTH (32 + 1)
#define OFX_STATE_LENGTH (5 + 1)
#define OFX_POSTALCODE_LENGTH (11 + 1)
#define OFX_NAME_LENGTH (32 + 1)
struct OfxPayment
{
char amount[OFX_AMOUNT_LENGTH];
char account[OFX_PAYACCT_LENGTH];
char datedue[9];
char memo[OFX_MEMO_LENGTH];
};
struct OfxPayee
{
char name[OFX_NAME_LENGTH];
char address1[OFX_NAME_LENGTH];
char city[OFX_NAME_LENGTH];
char state[OFX_STATE_LENGTH];
char postalcode[OFX_POSTALCODE_LENGTH];
char phone[OFX_NAME_LENGTH];
};
char* libofx_request_statement( const struct OfxFiLogin* fi, const struct OfxAccountData* account, time_t date_from );
char* libofx_request_accountinfo( const struct OfxFiLogin* login );
char* libofx_request_payment( const struct OfxFiLogin* login, const struct OfxAccountData* account, const struct OfxPayee* payee, const struct OfxPayment* payment );
char* libofx_request_payment_status( const struct OfxFiLogin* login, const char* transactionid );
extern int ofx_PARSER_msg;
extern int ofx_DEBUG_msg;
extern int ofx_DEBUG1_msg;
extern int ofx_DEBUG2_msg;
extern int ofx_DEBUG3_msg;
extern int ofx_DEBUG4_msg;
extern int ofx_DEBUG5_msg;
extern int ofx_STATUS_msg;
extern int ofx_INFO_msg;
extern int ofx_WARNING_msg;
extern int ofx_ERROR_msg;
extern int ofx_show_position;
#ifdef __cplusplus
} // end of extern "C"
#endif
#if defined(HAVE_GCC_VISIBILITY_EXTS) && defined(IN_LIBOFX)
# pragma GCC visibility pop
#endif
#endif // end of LIBOFX_H
OFX_DEBIT
Definition: libofx-0.9.10/inc/libofx.h:418
OfxTransactionData::date_posted
time_t date_posted
Definition: inc/libofx.h:539
OfxStatementData::ledger_balance_date
time_t ledger_balance_date
Definition: inc/libofx.h:660
OfxAccountData
An abstraction of an account.
Definition: inc/libofx.h:270
OfxPayee
Definition: inc/libofx.h:830
libofx_proc_file
int libofx_proc_file(LibofxContextPtr libofx_context, const char *p_filename, enum LibofxFileFormat ftype)
libofx_proc_file is the entry point of the library.
Definition: file_preproc.cpp:67
OfxStatusData::code_valid
int code_valid
Definition: inc/libofx.h:225
OFX_MARGININTEREST
Definition: libofx-0.9.10/inc/libofx.h:448
libofx_get_new_context
LibofxContextPtr libofx_get_new_context()
Initialise the library and return a new context.
Definition: context.cpp:153
InvTransactionType
InvTransactionType
Definition: libofx-0.9.10/inc/libofx.h:436
OFX_SPLIT
Definition: libofx-0.9.10/inc/libofx.h:456
OfxStatusData::Severity
Severity
Definition: inc/libofx.h:228
LibofxFileFormatInfo
Definition: inc/libofx.h:132
LibofxFileFormatInfo::format
enum LibofxFileFormat format
Definition: inc/libofx.h:134
OFX_CLOSUREOPT
Definition: libofx-0.9.10/inc/libofx.h:443
OFX_PAYMENT
Definition: libofx-0.9.10/inc/libofx.h:428
OFX_BUYOTHER
Definition: libofx-0.9.10/inc/libofx.h:441
OfxTransactionData::reference_number
char reference_number[OFX_REFERENCE_NUMBER_LENGTH]
Definition: inc/libofx.h:583
ofx_set_security_cb
void ofx_set_security_cb(LibofxContextPtr ctx, LibofxProcSecurityCallback cb, void *user_data)
Definition: context.cpp:195
InvTransactionType
InvTransactionType
Definition: inc/libofx.h:436
OfxStatementData::available_balance
double available_balance
Definition: inc/libofx.h:668
OFX_BUYMF
Definition: libofx-0.9.10/inc/libofx.h:439
ofx_set_transaction_cb
void ofx_set_transaction_cb(LibofxContextPtr ctx, LibofxProcTransactionCallback cb, void *user_data)
Definition: context.cpp:204
TransactionType
TransactionType
Definition: libofx-0.9.10/inc/libofx.h:415
OfxTransactionData::units
double units
Definition: inc/libofx.h:505
OFX_SELLOPT
Definition: libofx-0.9.10/inc/libofx.h:453
OfxTransactionData::unique_id
char unique_id[OFX_UNIQUE_ID_LENGTH]
Definition: inc/libofx.h:530
LibofxProcAccountCallback
int(* LibofxProcAccountCallback)(const struct OfxAccountData data, void *account_data)
The callback function for the OfxAccountData stucture.
Definition: libofx-0.9.10/inc/libofx.h:342
OfxAccountData::account_id
char account_id[OFX_ACCOUNT_ID_LENGTH]
Definition: inc/libofx.h:284
LibofxFileFormatInfo::description
const char * description
Definition: inc/libofx.h:136
OfxCurrency::exchange_rate
double exchange_rate
Definition: inc/libofx.h:711
OFX_DEP
Definition: libofx-0.9.10/inc/libofx.h:423
ofx_DEBUG3_msg
int ofx_DEBUG3_msg
Definition: messages.cpp:34
OfxStatusData::description
const char * description
Definition: inc/libofx.h:224
OfxTransactionData::fi_id_corrected
char fi_id_corrected[256]
Definition: inc/libofx.h:562
OfxAccountData::OFX_SAVINGS
Definition: inc/libofx.h:299
ofx_DEBUG_msg
int ofx_DEBUG_msg
Definition: messages.cpp:31
OfxAccountData::currency
char currency[OFX_CURRENCY_LENGTH]
Definition: inc/libofx.h:309
OFC
Definition: libofx-0.9.10/inc/libofx.h:126
OfxTransactionData::check_number
char check_number[OFX_CHECK_NUMBER_LENGTH]
Definition: inc/libofx.h:578
OfxStatementData::date_start
time_t date_start
Definition: inc/libofx.h:680
OFX_BUYDEBT
Definition: libofx-0.9.10/inc/libofx.h:438
REPLACE
Definition: libofx-0.9.10/inc/libofx.h:464
OfxStatusData::ERROR
Definition: inc/libofx.h:232
OfxStatementData::date_end
time_t date_end
Definition: inc/libofx.h:687
OfxFiServiceInfo::accountlist
int accountlist
Definition: inc/libofx.h:790
OfxAccountData::OFX_CREDITCARD
Definition: inc/libofx.h:303
libofx_proc_buffer
int libofx_proc_buffer(LibofxContextPtr ctx, const char *s, unsigned int size)
OfxTransactionData::transactiontype_valid
int transactiontype_valid
Definition: inc/libofx.h:490
LibofxProcTransactionCallback
int(* LibofxProcTransactionCallback)(const struct OfxTransactionData data, void *transaction_data)
The callback function for the OfxTransactionData stucture.
Definition: libofx-0.9.10/inc/libofx.h:625
OfxTransactionData::name
char name[OFX_TRANSACTION_NAME_LENGTH]
Definition: inc/libofx.h:593
OfxTransactionData::fi_id
char fi_id[256]
Definition: inc/libofx.h:518
ofx_show_position
int ofx_show_position
Definition: messages.cpp:41
OfxStatusData::INFO
Definition: inc/libofx.h:230
OfxTransactionData::commission
double commission
Definition: inc/libofx.h:600
OfxFiServiceInfo::investments
int investments
Definition: inc/libofx.h:793
AUTODETECT
Definition: libofx-0.9.10/inc/libofx.h:124
OfxStatementData::marketing_info
char marketing_info[OFX_MARKETING_INFO_LENGTH]
Definition: inc/libofx.h:692
OfxTransactionData::memo
char memo[OFX_MEMO2_LENGTH]
Definition: inc/libofx.h:597
OfxTransactionData::fi_id_correction_action
FiIdCorrectionAction fi_id_correction_action
Definition: inc/libofx.h:567
OfxFiServiceInfo::billpay
int billpay
Definition: inc/libofx.h:792
OfxSecurityData::currency
char currency[OFX_CURRENCY_LENGTH]
Definition: inc/libofx.h:387
OFX_REPEATPMT
Definition: libofx-0.9.10/inc/libofx.h:432
OFX_INVEXPENSE
Definition: libofx-0.9.10/inc/libofx.h:445
OfxStatusData::WARN
Definition: inc/libofx.h:231
ofx_DEBUG4_msg
int ofx_DEBUG4_msg
Definition: messages.cpp:35
ofx_ERROR_msg
int ofx_ERROR_msg
Definition: messages.cpp:40
ofx_set_account_cb
void ofx_set_account_cb(LibofxContextPtr ctx, LibofxProcAccountCallback cb, void *user_data)
Definition: context.cpp:186
OfxPayment
Definition: inc/libofx.h:822
OFX_INT
Definition: libofx-0.9.10/inc/libofx.h:419
OfxStatusData::code
int code
Definition: inc/libofx.h:222
OfxTransactionData::standard_industrial_code
long int standard_industrial_code
Definition: inc/libofx.h:586
OfxStatementData::account_id
char account_id[OFX_ACCOUNT_ID_LENGTH]
Definition: inc/libofx.h:649
libofx_get_file_format_from_str
enum LibofxFileFormat libofx_get_file_format_from_str(const struct LibofxFileFormatInfo format_list[], const char *file_type_string)
libofx_get_file_type returns a proper enum from a file type string.
Definition: file_preproc.cpp:54
OFX_SELLMF
Definition: libofx-0.9.10/inc/libofx.h:452
OfxSecurityData::memo
char memo[OFX_MEMO2_LENGTH]
Definition: inc/libofx.h:390
OFX_REINVEST
Definition: libofx-0.9.10/inc/libofx.h:449
OfxSecurityData::fiid
char fiid[OFX_FIID_LENGTH]
Definition: inc/libofx.h:395
ofx_set_statement_cb
void ofx_set_statement_cb(LibofxContextPtr ctx, LibofxProcStatementCallback cb, void *user_data)
Definition: context.cpp:213
OFX_CASH
Definition: libofx-0.9.10/inc/libofx.h:429
OfxTransactionData::date_initiated
time_t date_initiated
Definition: inc/libofx.h:546
UNKNOWN
Definition: libofx-0.9.10/inc/libofx.h:128
OfxCurrency::currency
char currency[OFX_CURRENCY_LENGTH]
Definition: inc/libofx.h:710
libofx_request_statement
char * libofx_request_statement(const struct OfxFiLogin *fi, const struct OfxAccountData *account, time_t date_from)
Creates an OFX statement request in string form.
OFX_INCOME
Definition: libofx-0.9.10/inc/libofx.h:444
OfxTransactionData::account_id
char account_id[OFX_ACCOUNT_ID_LENGTH]
Definition: inc/libofx.h:482
OFX_OTHER
Definition: libofx-0.9.10/inc/libofx.h:433
OfxSecurityData::unique_id
char unique_id[OFX_UNIQUE_ID_LENGTH]
Definition: inc/libofx.h:360
OFX_ATM
Definition: libofx-0.9.10/inc/libofx.h:424
OfxAccountData::account_name
char account_name[OFX_ACCOUNT_NAME_LENGTH]
Definition: inc/libofx.h:291
OfxAccountData::OFX_MONEYMRKT
Definition: inc/libofx.h:300
OfxTransactionData::unitprice
double unitprice
Definition: inc/libofx.h:508
FiIdCorrectionAction
FiIdCorrectionAction
Definition: libofx-0.9.10/inc/libofx.h:460
FiIdCorrectionAction
FiIdCorrectionAction
Definition: inc/libofx.h:460
OFX_CHECK
Definition: libofx-0.9.10/inc/libofx.h:427
OfxStatusData::server_message
char * server_message
Definition: inc/libofx.h:241
OfxTransactionData::account_ptr
struct OfxAccountData * account_ptr
Definition: inc/libofx.h:485
ofx_WARNING_msg
int ofx_WARNING_msg
Definition: messages.cpp:39
OfxSecurityData::date_unitprice
time_t date_unitprice
Definition: inc/libofx.h:382
TransactionType
TransactionType
Definition: inc/libofx.h:415
OfxTransactionData::server_transaction_id
char server_transaction_id[OFX_SVRTID2_LENGTH]
Definition: inc/libofx.h:572
OFX_BUYOPT
Definition: libofx-0.9.10/inc/libofx.h:440
OFX_SELLSTOCK
Definition: libofx-0.9.10/inc/libofx.h:455
OfxStatementData::account_ptr
struct OfxAccountData * account_ptr
Definition: inc/libofx.h:651
libofx_get_file_format_description
const char * libofx_get_file_format_description(const struct LibofxFileFormatInfo format_list[], enum LibofxFileFormat file_format)
get_file_format_description returns a string description of a LibofxFileType.
Definition: file_preproc.cpp:37
OFX_DIV
Definition: libofx-0.9.10/inc/libofx.h:420
OfxAccountData::AccountType
AccountType
Definition: inc/libofx.h:296
OfxAccountData::bank_id
char bank_id[OFX_BANKID_LENGTH]
Definition: inc/libofx.h:317
LibofxProcStatementCallback
int(* LibofxProcStatementCallback)(const struct OfxStatementData data, void *statement_data)
The callback function for the OfxStatementData stucture.
Definition: libofx-0.9.10/inc/libofx.h:703
OfxTransactionData::amount
double amount
Definition: inc/libofx.h:512
OfxStatusData
An abstraction of an OFX STATUS element.
Definition: inc/libofx.h:208
OFX_TRANSFER
Definition: libofx-0.9.10/inc/libofx.h:457
ofx_DEBUG2_msg
int ofx_DEBUG2_msg
Definition: messages.cpp:33
OFX_SELLOTHER
Definition: libofx-0.9.10/inc/libofx.h:454
OFX_XFER
Definition: libofx-0.9.10/inc/libofx.h:426
OfxSecurityData::unitprice
double unitprice
Definition: inc/libofx.h:378
OFX_CREDIT
Definition: libofx-0.9.10/inc/libofx.h:417
OfxSecurityData::unique_id_type
char unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH]
Definition: inc/libofx.h:363
OFX_DIRECTDEP
Definition: libofx-0.9.10/inc/libofx.h:430
OFX_SRVCHG
Definition: libofx-0.9.10/inc/libofx.h:422
OFX_FEE
Definition: libofx-0.9.10/inc/libofx.h:421
ofx_set_status_cb
void ofx_set_status_cb(LibofxContextPtr ctx, LibofxProcStatusCallback cb, void *user_data)
Definition: context.cpp:178
OFX_POS
Definition: libofx-0.9.10/inc/libofx.h:425
libofx_free_context
int libofx_free_context(LibofxContextPtr)
Free all ressources used by this context.
Definition: context.cpp:158
libofx_request_accountinfo
char * libofx_request_accountinfo(const struct OfxFiLogin *login)
Creates an OFX account info (list) request in string form.
ofx_STATUS_msg
int ofx_STATUS_msg
Definition: messages.cpp:37
LibofxFileFormatInfo::format_name
const char * format_name
Definition: inc/libofx.h:135
ofx_PARSER_msg
int ofx_PARSER_msg
Definition: messages.cpp:30
OFX
Definition: libofx-0.9.10/inc/libofx.h:125
OfxStatementData::available_balance_date_valid
int available_balance_date_valid
Definition: inc/libofx.h:674
OfxSecurityData::ticker
char ticker[OFX_TICKER_LENGTH]
Definition: inc/libofx.h:375
OfxTransactionData::security_data_valid
int security_data_valid
Definition: inc/libofx.h:537
OfxFiServiceInfo
Information returned by the OFX Partner Server about a financial institution.
Definition: inc/libofx.h:785
OfxTransactionData::payee_id
char payee_id[OFX_SVRTID2_LENGTH]
Definition: inc/libofx.h:590
OfxSecurityData
An abstraction of a security, such as a stock, mutual fund, etc.
Definition: inc/libofx.h:351
OfxStatusData::ofx_element_name_valid
int ofx_element_name_valid
Definition: inc/libofx.h:216
LAST
Definition: libofx-0.9.10/inc/libofx.h:129
OFX_JRNLSEC
Definition: libofx-0.9.10/inc/libofx.h:447
ofx_INFO_msg
int ofx_INFO_msg
Definition: messages.cpp:38
OFX_RETOFCAP
Definition: libofx-0.9.10/inc/libofx.h:450
LibofxProcStatusCallback
int(* LibofxProcStatusCallback)(const struct OfxStatusData data, void *status_data)
The callback function for the OfxStatusData stucture.
Definition: libofx-0.9.10/inc/libofx.h:257
OFX_BUYSTOCK
Definition: libofx-0.9.10/inc/libofx.h:442
ofx_DEBUG1_msg
int ofx_DEBUG1_msg
Definition: messages.cpp:32
OfxTransactionData::fees
double fees
Definition: inc/libofx.h:603
OFX_JRNLFUND
Definition: libofx-0.9.10/inc/libofx.h:446
ofx_DEBUG5_msg
int ofx_DEBUG5_msg
Definition: messages.cpp:36
OfxTransactionData
An abstraction of a transaction in an account.
Definition: inc/libofx.h:474
OfxCurrency::must_convert
int must_convert
Definition: inc/libofx.h:712
OfxTransactionData::date_funds_available
time_t date_funds_available
Definition: inc/libofx.h:554
OFX_SELLDEBT
Definition: libofx-0.9.10/inc/libofx.h:451
OfxCurrency
NOT YET SUPPORTED.
Definition: inc/libofx.h:708
LibofxFileFormat
LibofxFileFormat
Definition: inc/libofx.h:122
OfxAccountData::OFX_CMA
Definition: inc/libofx.h:302
OfxStatusData::name
const char * name
Definition: inc/libofx.h:223
LibofxProcSecurityCallback
int(* LibofxProcSecurityCallback)(const struct OfxSecurityData data, void *security_data)
The callback function for the OfxSecurityData stucture.
Definition: libofx-0.9.10/inc/libofx.h:413
OfxAccountData::account_number
char account_number[OFX_ACCTID_LENGTH]
Definition: inc/libofx.h:313
OfxAccountData::OFX_CREDITLINE
Definition: inc/libofx.h:301
OfxTransactionData::unique_id_type
char unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH]
Definition: inc/libofx.h:532
OfxStatementData::currency
char currency[OFX_CURRENCY_LENGTH]
Definition: inc/libofx.h:646
OfxFiServiceInfo::statements
int statements
Definition: inc/libofx.h:791
OfxAccountData::OFX_INVESTMENT
Definition: inc/libofx.h:304
OfxAccountData::OFX_CHECKING
Definition: inc/libofx.h:298
OfxStatementData::ledger_balance
double ledger_balance
Definition: inc/libofx.h:657
QIF
Definition: libofx-0.9.10/inc/libofx.h:127
OFX_DIRECTDEBIT
Definition: libofx-0.9.10/inc/libofx.h:431
DELETE
Definition: libofx-0.9.10/inc/libofx.h:462
OfxStatementData
An abstraction of an account statement.
Definition: inc/libofx.h:636
OfxSecurityData::secname
char secname[OFX_SECNAME_LENGTH]
Definition: inc/libofx.h:367
OfxFiLogin
Information sufficient to log into an financial institution.
Definition: inc/libofx.h:805