Currency symbols (like any symbol) may be any combination of alphanumeric characters, but the FX market has a convention that says that the first currency in a currency pair is the 'target' and the second currency in the symbol pair is the currency the rate ticks in. So 'EURUSD' can be read as 'USD per 1 EUR'.
exchange_rate(primary_id = NULL, currency = NULL, counter_currency = NULL,
tick_size = 0.01, identifiers = NULL, assign_i = TRUE,
overwrite = TRUE, ...)
string identifier, usually expressed as a currency pair 'USDYEN' or 'EURGBP'
string identifying the currency the exchange rate ticks in
string identifying the currency which the rate uses as the base 'per 1' multiplier
minimum price change
named list of any other identifiers that should also be stored for this instrument
TRUE/FALSE. Should the instrument be assigned in the
.instrument
environment? (Default TRUE)
TRUE
by default. If FALSE
, an error will
be thrown if there is already an instrument defined with the same
primary_id
.
any other passthru parameters
In FinancialInstrument
the currency
of the instrument should
be the currency that the spot rate ticks in, so it will typically be the
second currency listed in the symbol.
Thanks to Garrett See for helping sort out the inconsistencies in different naming and calculating conventions.
http://financial-dictionary.thefreedictionary.com/Base+Currency