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.

Hello @rory.winston

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

@rory.winston

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
17.3k 82 39 63

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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