Class SwapPointsCurve.Builder
java.lang.Object
com.quantfinlib.fx.SwapPointsCurve.Builder
- Enclosing class:
SwapPointsCurve
Accumulates tenor/points quotes, then freezes them into a curve.
-
Method Summary
Modifier and TypeMethodDescriptionAdds a pillar quoted in pips (market form: "1M EURUSD +12.6"), scaled by the pair's pip size internally.build()Pre-spot value date (today or tomorrow) with the cumulative swap points, in pips, from that date to spot: the outright for that date isspot − points.
-
Method Details
-
add
Adds a pillar quoted in pips (market form: "1M EURUSD +12.6"), scaled by the pair's pip size internally. Negative points are normal when the base currency yields more than the quote currency. -
preSpot
Pre-spot value date (today or tomorrow) with the cumulative swap points, in pips, from that date to spot: the outright for that date isspot − points. For a T+2 pair, tomorrow takes the TN points and today takes ON + TN. The caller states the cumulative amount so no quoting-side convention is assumed here. -
build
-