Any way to be connected real time (PYTHON)
Hi guys, good afternoon.
I am currently connecting to the API in python in this way:
ek.set_app_id('XXXXXXXXXXXXXXXXX')
If I want to obtain my data, I have it this way:
df= ek.get_timeseries('GGAL.O', fields='close', start_date='1900-01-01', end_date='2018-05-19')
Until this point we are fine. I would like to know if there is any way to be connected real time and receive information every 10 minutes. Is there any way I can do this?
Best Answer
-
Streaming market data is not currently available through Eikon Data APIs. It will certainly be introduced, but there's no committed time frame yet. In the meantime you can use Eikon COM or .NET APIs to subscribe to streaming market data. Or you can periodically retrieve snapshots of real-time market data using get_data method, e.g. ek.get_data(['GGAL.O','AAPL.O'],['CF_LAST','CF_BID','CF_ASK']). This should work for a relatively short list of RICs (say up to a few hundred) and relatively infrequent snapshot requests (once every 10 minutes is probably fine, but more frequently is probably not).
1
Answers
-
i put:
ek.get_data(['GGAL.O','GFG.BA'],['CF_LAST','CF_BID','CF_ASK'])
And then:
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
<ipython-input-31-7451a5cd0a30> in <module>()
----> 1ek.get_data(['GGAL.O','GFG.BA'],['CF_LAST','CF_BID','CF_ASK'])
~\Anaconda3\lib\site-packages\eikon\data_grid.py in get_data(instruments, fields, parameters, field_name, raw_output, debug)
149 payload = {'instruments': instruments,'fields': fields_for_request}
150 if parameters: payload.update({'parameters': parameters})
--> 151result = eikon.json_requests.send_json_request(DataGrid_UDF_endpoint, payload, debug=debug)
152
153 if raw_output:
~\Anaconda3\lib\site-packages\eikon\json_requests.py in send_json_request(entity, payload, ID, debug)
90 raise EikonError('401', response.text) #'daemon is disconnected')
91 else:
---> 92raise requests.HTTPError(str(response), response=response)
93
94 except requests.exceptions.ConnectionError as connectionError:
HTTPError: <Response [403]>0 -
Hmm. You're the second person reporting the exact same error today. Are you able to retrieve any data right now using Eikon Data APIs? Does the get_timeseries method you mentioned in the original post return data?
If the error you mentioned persists, could you please update the version of eikon library to the latest v0.1.13 by running "pip install eikon --upgrade" from command prompt? I expect the latest version of eikon library to produce a more verbose error message, which hopefully will help identify the root cause of the issue.0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛