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?

Thanksimage

Best Answer

  • pf
    pf LSEG
    Answer ✓

    Hi,

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

    print(rdp.get_last_status())

Answers

  • 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'])