question

Upvotes
Accepted
1 0 0 1

FX Options Example Doesnt Work

Hi

The code book code below doesnt return anything and I cant see any errors (this is from the examples)


Any idea why this doesnt work?


rdp.get_option_analytics(
    universe = option.Definition(
        underlying_type=option.UnderlyingType.FX,
        underlying_definition="AUDUSD",
        tenor="5M", 
        strike=0.6400, 
        call_put="Call",
        exercise_style = "European",
        notional_amount=1000000, 
        notional_ccy="AUD"
    ), 
    fields = ["ValuationDate","OptionType","ExerciseType","ExerciseStyle","EndDate",
          "StrikePrice","PremiumPercent","DeltaPercent","GammaPercent"]
)
eikonrdp-apirefinitiv-data-platformrefinitiv-data-platform-libraries
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
11.7k 57 39 60

Hi @rory.winston,

Thanks for raising this issue. The example in the notebook, which is where you pulled this from, I confirmed doesn't work. You can actually see the result of this call by executing the following:

rdp.get_last_status()


This results in an error complaining about Exercise Style

Change the line:

exercise_style = "European",

to

exercise_style = "Euro",


I will raise this to the product manager. Thanks.


1610388912715.png (200.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.