get_data Time parameter. Python
Hello, I'm using Python.
I want to retreive the BID/ASK of Eur at a specific time(seconds).
I'm using data, error=ek.get_data('EUR=', ['TR.ASKPRICE.Date', 'TR.ASKPRICE','TR.BIDPRICE'], parameters={'SDate':'2018-06-20', 'EDate':'2018-06-22'})
I would like to Know how to Change the SDate EDate format and add Hour/min/sec to it.
thank you
Best Answer
-
Hi @e-naji,
If you are interested in intraday activity, use the get_timeseries() method call. With that you can narrow down your time range and specify the granularity of the measure using the available options for the interval parameter. For example:
df = tr.get_timeseries( 'EUR=', start_date='2018-06-20T09:25:00',
end_date='2018-06-20T16:01:00',
interval='minute' )Note: See this post which provides additional details around the interval and what to expect.
0
Answers
-
In addition to the response from @nick.zincone.1 get_timeseries method currently can only retrieve timeseries for the default view for an instrument, which for spot exchange rates is BID. If you need both bid and ask intraday history at the moment there's no way to retrieve it using Eikon Data API. The only Eikon API that can currently provide both bid and ask intraday history is Eikon .NET API.
1 -
I am very new to python. Can you please suggest me some website from where I can get all the code and the basic thing of python, but don't suggest me Skype Customer Service this website, I am fed up with this website. So please suggest me some real and good website so that I can be an expert in python.
0 -
Hello and thank you for you answer. @nick.zincone.1 But sadly we can't get BID/ASK and such using get_timeseries
0 -
Hello and thank you for your answers. I find it odd that the function get_data() allows us to get Bid/Ask for a specific Date M/D/Year and not for an exact time like M/D/Y H/M/Sec.
0 -
Alex Putkov., is it still the case that there is no way to get intraday bid and ask prices using the Eikon Python API?
0 -
Correct. It's still the case that intraday quote history for exchange traded instruments is only available through Eikon .NET API and RHistory COM API (the latter can only be used in Excel VBA).
0 -
okay thanks!
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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 中文论坛