Hi @stepan.kalika,
Can you confirm the version of the API you are using? Also, post the actual code that doesn't respond.
Hi @stepan.kalika,
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
AHS
Hi,
Your version is quite old, you should upgrade to the latest (1.0.0a7.post1) and confirm if you reproduce the issue.
Hi @pierre.faurel,
It seems that the client has found another issue with the new version. Could you please look into it?
Thanks
endpoint.send_request(method = rdp.Endpoint.RequestMethod.POST, body_parameters = swap_body)
endpoint_url = "https://api.ppe.refinitiv.com/data/quantitative-analytics/v1/financial-contracts"session = rdp.open_desktop_session(APP_KEY)
endpoint = rdp.Endpoint(session, endpoint_url)
swap_body = {
"outputs": ["Data", "Headers", "MarketData"],
"universe": [
{
"instrumentType": "Swap",
"instrumentDefinition": {
"tenor": "5Y",
"legs": [
{
"direction": "Paid",
"notionalAmount": "10000000",
"notionalCcy": "EUR",
"interestType": "Fixed",
"interestPaymentFrequency": "Quarterly",
"interestCalculationMethod": "Dcb_30_360"
},
{
"direction": "Received",
"notionalCcy": "JPY",
"interestType": "Float",
"indexResetFrequency": "Quarterly",
"interestCalculationMethod": "Dcb_Actual_360"
}
]
},
"pricingParameters": {
"valuationDate": "2015-06-22"
}
}
]
}
response = endpoint.send_request(method = rdp.Endpoint.RequestMethod.POST,
body_parameters = swap_body)
thanks, open_platform_session - works well, but if use open_desktop_session - returns error {'code': 401, 'message': 'An invalid location header is received while retrieving RDP access token', 'statusMessage': 'Unauthorized'}
I see that you're sending request to PPE platform.
That means you need to start Eikon with a beta login/pwd.
But as you received Unauthorized status, I assume that Eikon was started with a Prod user account.