Sample code for rto getting economic events

Julian_Bai
Julian_Bai LSEG
edited February 7 in WebSocket API

Hi team, do we have any sample code using RTO to fetch economic events data? Say US cpi. Thank you!

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Julian.Bai

    Thank you for reaching out to us.

    The RTO Websocket APIs examples are on GitHub.

    For example, you can run the market_price_rto_client_cred_auth.py code by specifing a US CPI RIC (USCPI=ECI).

    python market_price_rdpgw_client_cred_auth.py --clientid <client id> --clientsecret <client secret> --ric USCPI=ECI

    Therefore, you need to know RICs that can provide the required data. Please contact the content support team directly for Real-Time RICs.

    Moreover, RTO can only provide Real-Time data which is similar to data on the Quote App.