Skip to main content

Module fx

Module fx 

Expand description

FX products: fxSingleLeg (spot, forward, NDF), fxSwap, a European vanilla fxOption (NDO included), and a strategy of them.

A forward’s base is the quoted pair’s first currency where the rate is quoted per unit of it, the second otherwise; its amounts are the stated ones, signed for the reporting party. An option is on its put currency where the strike is quoted in call currency per put currency, and on its call currency otherwise, so the strike is always quote per base.

FunctionsΒ§

components πŸ”’
The components one FX product books, the product first, premiums after.
exchanged πŸ”’
One exchangedCurrency: its currency, its amount, and whether we receive.
fixing πŸ”’
The fixing a fixing element states: its series and its date.
forward πŸ”’
A leg of FX: an fxSingleLeg, or one leg of an fxSwap.
fx_built πŸ”’
option πŸ”’
A European vanilla fxOption, its quantity from the buyer.
read πŸ”’
Reads an FX product, or a strategy of them, one component set per leg.
unsupported πŸ”’