- of
Obtains an instance from two currencies. The first currency is the base and the
second is the counte
- equals
Checks if this currency pair equals another. The comparison checks the two
currencies.
- getBase
Gets the base currency of the pair. In the pair 'AAA/BBB' the base is 'AAA'.
- toString
Returns the formatted string version of the currency pair. The format is
'${baseCurrency}/${counterC
- contains
Checks if the currency pair contains the supplied currency as either its base or
counter.
- getCounter
Gets the counter currency of the pair. In the pair 'AAA/BBB' the counter is
'BBB'.
The counter cur
- parse
Parses a currency pair from a string with format AAA/BBB. The parsed format is
'${baseCurrency}/${co
- toConventional
Returns the market convention currency pair for the currencies in the pair. If
#isConventional() is
- inverse
Gets the inverse currency pair. The inverse pair has the same currencies but in
reverse order.
- cross
Finds the currency pair that is a cross between this pair and the other pair.
The cross is only ret
- isConventional
Checks if this currency pair is a conventional currency pair. A market
convention determines that 'E
- isInverse
Checks if this currency pair is the inverse of the specified pair. This could be
used to check if an