Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 2 2

Help with Order Book in Eikon API

Hello team, could you please help us get the Order Book with Eikon API - preferred in Python or R

We have an important demo for a significant client and we wish to advance with this request.

This is what I got so far


import refinitiv.dataplatform as rdp
import eikon as ek
import pandas as pd
import plotly.express as px
import time
rdp.open_desktop_session('DEFAULT_CODE_BOOK_APP_KEY')
ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')
fields = []
for i in range(1, 10):
    fields.append('BEST_BID' + str(i))
    fields.append('BEST_ASK' + str(i))
fields = fields + ['BEST_BSZ10', 'BEST_BID10', 'BEST_ASK10', 'BEST_ASZ10']
ek.get_data('BBDC4.SA',fields)

But those fields are not found for RIC < BBDC4.SA >.


Another question is if client could get streaming book in R with Eikon API?


Thanks

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apieikon-data-api-r
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
Upvote
Accepted
39.4k 77 11 27

Order book data for Sao Paulo stocks is provided in RICs constructed as Level 1 stock RIC + 'p'. In your example you just need to replace the RIC 'BBDC4.SA' with 'BBDC4.SAp'.
I'm afraid at the moment streaming market data retrieval is not implemented in Eikon Data APIs library for R. At this time it's only implemented in EDAPI library for Python and in RDP Libraries for Python, .NET and Typescript.

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.