A way to set up Call/Put in parameter for IPA FX Volatility surface API is not mentioned in the document"IPA Volatility Surfaces : FX".
In Eikon FXVE, call delta and put delta are automatically come up in the bottom section by selecting "delta" as Y axis on the top left of the app:
(Y axis=delta)
(Call delta/Put delta)
However, there seems no such a parameter in IPA:
Document: https://developers.refinitiv.com/en/api-catalog/refinitiv-data-platform/refinitiv-data-platform-apis/documentation#ipa-volatility-surfaces-fx
Here is the sample code:
fx_request_body={
"universe": [
{
"underlyingType": "Fx",
"surfaceTag": "FxVol-USDJPY
",
"underlyingDefinition": {
"fxCrossCode": "USDJPY"
},
"surfaceLayout": {
"format": "Matrix",
"yValues": [ "-0.1","-0.15","-0.2","-0.25","-0.3","-0.35","-0.4","-0.45","0.5","0.45","0.4","0.35","0.3","0.25","0.2","0.15","0.1"]
},
"surfaceParameters": {
"xAxis": "Date",
"yAxis": "Delta",
"calculationDate": "2021-09-08T00:00:00Z",
"returnAtm": "False",
}
}
]
}
fx_response = vs_endpoint.send_request(
method = rdp.Endpoint.RequestMethod.POST,
body_parameters = fx_request_body
)
print(json.dumps(fx_response.data.raw, indent=2))
Could you please advise how to set up call/put in API FX Volatility surface IPA on RDP?