How do i get the latest market price for instrument Apple
How do i get the latest market price for instrument Apple, i.e during market trading hours. via get data and get time series.
Best Answer
-
I would suggest using get_history for historical data. Please not that you can combine the pricing and fundamental data fields in a single get_history request:
rd.get_history(
universe=["AAPL.O"],
fields=["BID", "ASK", 'TR.RevenueMean'],
)Best regards,
Haykaz
0
Answers
-
Hi @ken03 ,
You can use refinitiv data libraries to get the pricing data, including the market prices. Please find examples of using get_data and get_history function in our GitHub repo:
Hope this helps and please let me know should you have any further questions.
Best regards,
Haykaz
1 -
Hi Haykaz,
There is a start date and an end date, i am wondering say if i am in the middle of the trading day and want the most current prices instead of 1 day before how should i set the end date? is it 1?
0 -
Hi @ken03 ,
If you are looking into intraday data, you can use get_history function with a more granular interval parameter (Supported values: tick, tas, taq, minute, 1min, 5min, 10min, 30min, 60min, hourly, 1h, daily, 1d, 1D, 7D, 7d, weekly, 1W, monthly, 1M, quarterly, 3M, 6M, yearly, 1Y). Below is an example with tick level granularity:
df = rd.get_history("AAPL.O", fields =['TRDPRC_1', 'BID', 'ASK'], interval = 'tick', count = 1000)
You can also resample the output with a different frequency, using, eg:
df.ohlc("5s")
Best regards,
Haykaz
0 -
Haykaz i notice that the timestamp format which i pull from get_history and get_data is different, in that get_data has a yz at the end of the time. I am trying to combine the time series data with fundamental data
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 中文论坛