Setting up the FX file

From Flametree Technologies
Revision as of 01:48, 20 February 2017 by Fiasys (talk | contribs) (→‎Overview)
Jump to navigation Jump to search


The FX file supplies exchange rate information for use when

  • local currency returns are not supplied, and need to be calculated from base currency returns; or
  • base currency returns are not supplied, and need to be calculated from local currency returns.

FX rates are usually measured against a base currency, typically the US dollar. Note that because the rates in this files are used to calculate returns, FIA uses the ratios of rates rather than absolute values. There is therefore no need to specify which base currency is being used.

All rows in the FX file must conform to the following format:

Column Field Type Example Required? Rules
1 Date Date 31/12/12 Yes Date of current record, using the date format supplied in the DateFormat or FXDateFormat strings
2 Currency String AUD Yes Must be a string with at least 3 characters
3 Value Double 0.25 Yes Value of exchange rate at given date

The tuple (Date, Currency) must be unique. Duplicate index entries within the same file will generate an error.


Entries in the Date column must conform to the relevant date format string in the project’s configuration file.

Index name

Name of current index


Value of current index