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
fixingelement states: its series and its date. - forward π
- A leg of FX: an
fxSingleLeg, or one leg of anfxSwap. - fx_
built π - option π
- A European vanilla
fxOption, its quantity from the buyer. - read π
- Reads an FX product, or a
strategyof them, one component set per leg. - unsupported π