Uses of Class
com.quantfinlib.fx.CurrencyPair
Packages that use CurrencyPair
Package
Description
FX market conventions and instruments, from spot dates to NDFs.
-
Uses of CurrencyPair in com.quantfinlib.fx
Methods in com.quantfinlib.fx that return CurrencyPairModifier and TypeMethodDescriptionstatic CurrencyPairCurrencyPair.custom(String base, String quote, double pipSize, int pricePrecision, int spotLagDays, BusinessCalendar baseCalendar, BusinessCalendar quoteCalendar) Fully custom conventions (exotic pairs, onshore fixings, tests).static CurrencyPairStandard conventions for a 6-letter pair code ("EURUSD", "USDJPY", ...), weekends-only calendars.static CurrencyPairStandard conventions for an explicit base/quote, weekends-only calendars.FxSwap.pair()Ndf.pair()SwapPointsCurve.pair()CurrencyPair.withCalendars(BusinessCalendar baseCalendar, BusinessCalendar quoteCalendar) Same conventions with real holiday calendars for each currency's center.Methods in com.quantfinlib.fx with parameters of type CurrencyPairModifier and TypeMethodDescriptionstatic SwapPointsCurve.BuilderSwapPointsCurve.builder(CurrencyPair pair, LocalDate tradeDate, double spotRate) static FxSwapFxSwap.of(CurrencyPair pair, double baseNotional, LocalDate nearDate, double nearRate, LocalDate farDate, double farRate) Explicit legs (off-market swaps, historical bookings).static NdfNdf.of(CurrencyPair pair, double baseNotional, double contractRate, LocalDate fixingDate, LocalDate settlementDate) Explicit dates (broken dates, historical bookings).static NdfNdf.of(CurrencyPair pair, LocalDate tradeDate, String tenor, double contractRate, double baseNotional) Books an NDF at a market tenor: settlement from the pair's tenor arithmetic, fixing walked back by the restricted (quote) currency's lag counted in local (quote-calendar) business days — the market convention: an RBI/KFTC/PTAX fixing publishes on its local business days regardless of USD holidays.static NdfNdf.of(CurrencyPair pair, LocalDate tradeDate, String tenor, double contractRate, double baseNotional, int fixingLagDays) AsNdf.of(CurrencyPair, LocalDate, String, double, double)with an explicit fixing lag.static doubleFxSwap.rollCost(CurrencyPair pair, double baseNotional, double tomNextPips) Cost in quote currency of rolling a base position one day at a quoted tom-next rate: what a position holder pays (or earns, when negative) to push settlement from tomorrow to the next day.static doubleFixingRisk.slippageVsFix(CurrencyPair pair, double achievedPrice, double fixPrice) Realized slippage of an achieved price vs the fix print, in pips (signed, buy side).