question

Upvotes
Accepted
3 0 2 1

endpoint.send_request(method = rdp.Endpoint.RequestMethod.POST, body_parameters = body) doesn't response

rdp-apirefinitiv-data-platform
icon clock
10 |1500

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

Hi @stepan.kalika,

Can you confirm the version of the API you are using? Also, post the actual code that doesn't respond.

Upvote
Accepted
4.3k 2 4 5

Hi,

Your version is quite old, you should upgrade to the latest (1.0.0a7.post1) and confirm if you reproduce the issue.

icon clock
10 |1500

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

Thanks, it helps

Upvotes
3 0 2 1

endpoint.send_request(method = rdp.Endpoint.RequestMethod.POST, body_parameters = swap_body)

icon clock
10 |1500

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

Upvotes
3 0 2 1

>>> print(rdp.__version__)

1.0.0-alpha

icon clock
10 |1500

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

Upvotes
3 0 2 1

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)

icon clock
10 |1500

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

Upvotes
3 0 2 1

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'}

icon clock
10 |1500

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

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.

Click below to post an Idea Post Idea