public final class CrossRateCalculator extends Object
Modifier and Type | Method and Description |
---|---|
static FxRate |
calculateCross(CurrencyPair targetPair,
FxRate fx1,
FxRate fx2,
int precision,
int precisionForInverseFxRate,
MajorCurrencyRanking ranking,
int bidRounding,
int askRounding,
CurrencyProvider currencyProvider)
Calculate the cross rate, use this only if required.
|
public static FxRate calculateCross(CurrencyPair targetPair, FxRate fx1, FxRate fx2, int precision, int precisionForInverseFxRate, MajorCurrencyRanking ranking, int bidRounding, int askRounding, CurrencyProvider currencyProvider)
targetPair
- the currency pair we want Bid/Ask forfx1
- one rate involving either targetPair.ccy1 or targetPair.ccy2fx2
- one rate involving either targetPair.ccy1 or targetPair.ccy2precision
- required in case we need to divide ratesranking
- link to algorithm to determine if the targetPair will be market convention or notIllegalArgumentException
- if the 2 fx1 and fx2 do not share a common cross currency or either currencies in the targetPairCopyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.