Hi,
Your version is quite old, you should upgrade to the latest (1.0.0a7.post1) and confirm if you reproduce the issue.
Hi @stepan.kalika,
Can you confirm the version of the API you are using? Also, post the actual code that doesn't respond.
endpoint.send_request(method = rdp.Endpoint.RequestMethod.POST, body_parameters = swap_body)
>>> print(rdp.__version__)
1.0.0-alpha
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'}
Thanks, it helps
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.