Thank you for the quick reply.
I am currently set up in Eclipse and can run the standard examples
I was able to replicate the FX option from the test suite and create an example out of it.
There are still some things bugging me however,
As I understand , the
ResolvedFxSingle will ensure that the currency pair we wish to trade is converted to market conventions.
For example If I wish to buy 10 euros in exchange for 15 dollars in the future this will be converted to an inverse EURUSD trade since the market convention is to quote EUR as the base currency.
An example of this appears in the test case
`final CurrencyAmount EUR_AMOUNT = CurrencyAmount.of(EUR, NOTIONAL);
final CurrencyAmount USD_AMOUNT = CurrencyAmount.of(USD, -NOTIONAL * STRIKE_RATE_HIGH);
final ResolvedFxSingle fx = ResolvedFxSingle.of(EUR_AMOUNT, USD_AMOUNT, PAYMENT_DATE);`
Since we pay USD( amount is negative) and receive EUR this should be converted to a market conform pay EUR receive USD quote.
My intuition would therefore be to create an FXoption with the
longShort argument set to SHORT. However, in the example it is set to LONG.
final ResolvedFxVanillaOption CALL_ITM = ResolvedFxVanillaOption.builder() .longShort(LONG)
Furthermore we use the US discountfactor to get the present expected value of the option . But since the USD amount is negative, if we enter into the currency conversion, do we not receive EUR and should therefore use the EUR discountfactor?