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
1 0 1 1

Can I get historical Bid/Ask 1~10 data (full orderbook data) using API?

Can I get historical Bid/Ask 1~10 intraday data (full orderbook data) using eikon python API?


If possible, please tell me methods.


Thank you.

eikoneikon-data-apirefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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
10.1k 18 6 9

@su-chang How long history are you looking for? For any deep history you would need to use our Refinitiv Tick History product. Historical full orderbook data is not available in Eikon. Please speak to your Refintiv account representative or University Staff - who can arrange a trial if your institution is interested.

You can get a current snapshot of the orderbook as follows but this might also depend on whether you subscribe to receive Level 2 or orderbook data from the exchange:

fields = []
for i in range(1, 10):
    fields.append('BEST_BSIZ' + str(i))
    fields.append('BEST_BID' + str(i))
    fields.append('BEST_ASK' + str(i))
    fields.append('BEST_ASIZ' + str(i))
fields = fields + ['BEST_BSZ10', 'BEST_BID10', 'BEST_ASK10', 'BEST_ASZ10']
df,err = ek.get_data('VOD.LO',fields)
df

1629708396620.png

I hope this can help.


1629708396620.png (54.0 KiB)
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.