question

Upvotes
Accepted
1 0 0 2

Fail to get data snapshot via python api

Hi,

I tried to load the data of two forex symbols with exact same code as the RDP tutorial, but it returned None to me. Can some one help me with this problem?

Thanks

rdp-apirefinitiv-data-platformrefinitiv-data-platform-libraries
1614059400462.png (3.8 KiB)
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
4.3k 2 4 5

Hi,

This function should give you the reason why you got None:

print(rdp.get_last_status())
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.5k 16 7 10

Hello @filip.shu

The other way to enable the debug log is using the Python logging library:

import logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG)

rdp.get_snapshot(universe = ['GBP=','JPY='], fields = ['BID','ASK'])
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