question

Upvotes
Accepted
1 0 0 0

TREP issue

Hi

I tried to execute "2.3.0 - Content - StreamingPrices - Update DataFrame". I could data via Eikon and EDP but not from TREP. I just got

<StreamState.Open: 3>

then no updates. Could you give me a hint to debug the situation?

python#technologyrdp-apirefinitiv-data-platformrefinitiv-data-libraries
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.

1 Answer

· Write an Answer
Upvotes
Accepted
17.8k 82 39 63

Hi @komarovaulia803

I would suggest you start with this basic streaming example as it provides all the callbacks to capture all events.

In addition, refer to the Sessions example demonstrating how to connect to a deployed ADS:

session = rd.session.platform.Definition(
    app_key = APP_KEY, 
    deployed_platform_host = REALTIME_DISTRIBUTION_SERVICE_HOST,
    deployed_platform_username = REALTIME_DISTRIBUTION_SERVICE_USER_NAME,
    signon_control = True
).get_session()

Also, depending on the setup of your ADS, you may need to specify a service within your definition:

stream = omm_stream.Definition(
    name="EUR=", 
    fields=['BID', 'ASK','OPEN_PRC','HST_CLOSE','TIMACT'], 
    service='ELEKTRON_DD',
    domain='MarketPrice').get_stream()
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.