I'm using GET_DATA etc. and getting back delayed quotes/prices/... What do I need to do to get re...

Best Answer
-
You can use the following statement to get your constituents:
option_chain,err = ek.get_data('0#SPX*.U', ['CF_NAME'])
And to get your real-time data, try something like this: (Note: The Pricing interface / WebSocket service has a limitation when making a single request - so you will have to break up the request into buckets - in the example below, I'm using a value of 100).
0
Answers
-
If you want to get real-time data, I would suggest you look at the pricing cache example which subscribes to data and allows the ability to pull out live data from the cache.
0 -
Currently I use:
option_chain, err = ek.get_data('0#SPX*.U', ['TRADE_DATE', 'ACVOL_1'])
option_data_block, err = ek.get_data(instruments =option_chain['Instrument'].tolist(), fields=['PUTCALLIND', 'TRDPRC_1', 'BID', 'ASK', 'TRADE_DATE', 'SALTIM', 'STRIKE_PRC', 'EXPIR_DATE'])
undelying_price, err = ek.get_data('.SPX', ['CF_LAST'])
Are you saying Nick that I can not use those 3 statements to get real time option data and the price of underlying?
0 -
I need to get those field real time !!!!
0 -
0
-
0
-
0
-
Nick,
I need Web Socket Service for this as I understand, is that correct? That's a separate subscription that I need to get, right? I do no have Refinitiv library to do
from refinitiv.data.content import pricing
I just have Eikon library
Thanks so much for your help
0 -
The refinitiv.data library should be available to you. You can refer to the learning material on our dev portal for more details: Refinitiv Data Library for Python. I believe you should have streaming services as part of your license - I would try one of the basic tutorials within the link I provided.
0 -
0
-
Thank you sir for those last 2 messages. I really appreciate it. As long as I can do from refinitiv.data.content import pricing
I should be fine. May have to install that package. I'll try it tomorrow and let you know. We have your data company wide, we dropped Bloomberg so I would think I have license needed.
0 -
Hi Nick,
1 last question. I also need to get weekly SPX option chain. Its about 13,000 items. When I run:
option_chain, err = ek.get_data('0#SPXW*.U', ['CF_NAME'])
it times out. What options do I have to get weekly SPX option chain? Can I use a filter to pull only a subset of them?
Thanks so much Nick
0 -
@vlad.dimanshteynHi
Does the request to retrieve this option chain always fail? I don't know if it may fall into the category of data limits or if there is a backend issue. I think it would be best if you were to post this as a separate question as I think it will involve more than a few comments here :-). Thanks.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 616 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 653 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛