question

Upvotes
Accepted
23 0 6 7

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

Upvotes
Accepted
23 0 6 7

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

Upvotes
11.3k 25 9 14

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

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.