question

Upvotes
Accepted
25 1 2 2

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 512.0 KiB each and 1.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.

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

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 512.0 KiB each and 1.0 MiB total.

Thanks, it helps

Hi @pierre.faurel,

It seems that the client has found another issue with the new version. Could you please look into it?

Thanks

Upvotes
25 1 2 2

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 512.0 KiB each and 1.0 MiB total.

Upvotes
25 1 2 2

>>> print(rdp.__version__)

1.0.0-alpha

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.

Upvotes
25 1 2 2

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 512.0 KiB each and 1.0 MiB total.

Upvotes
25 1 2 2

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 512.0 KiB each and 1.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.

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.