question

Upvotes
Accepted
23 0 1 4

Error in retrieving TRTH contract info

I have followed the instruction given in the following link to pull the contract info and it is given me the below mentioned error.


Link: https://developers.refinitiv.com/article/tick-history-article-5


Error:

{'error': {'message': "Malformed request payload: '@odata.type' is either missing or misplaced for type ThomsonReuters.Dss.Api.Search.DateComparison"}}

tick-history-rest-api
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
Accepted
23 0 1 4

Tried it in Python 3.6 and it is working. Thank you.

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
11.3k 25 8 13

Hi @varun.divakar,

The error can be received when the @odata.type is not the first element in each object. Some Python version may re-order element internally. You may need to use OrderedDict to create request or update version of Python.

For more information, please refer to this question.

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.

Click below to post an Idea Post Idea