Workspace with API (refinitiv.data / rd.get_history) does not give unadjusted prices
Hi support team
I want to download unadjusted stock price data. TESLA had a stock split on 2022-08-23.
- Workspace is running while I download data via API
If I use refinitiv.data API:
import refinitiv.data as rd
...
df3 = rd.get_history(
universe=["TSLA.O"],
fields=["tr.PriceClose", "tr.Volume", "tr.Turnover"],
interval="1D",
start="2022-08-01",
end="2022-08-31",
adjustments="unadjusted"
)
gives result:
TSLA.O Price Close Volume Turnover
Date
2022-08-22 289.913043 55843402 16144833663
2022-08-23 296.453037 63985107 18862157610
2022-08-24 297.09637 57259773 17184310837
2022-08-25 296.07 53230013 15731346515
Data does NOT show the stock split and is adjusted for it.
If I use the Eikon API:
import eikon as ek
...
df = ek.get_timeseries(
# [f'{RIC}'],
['TSLA.O'],
start_date="2022-08-01",
end_date="2022-08-31",
interval='daily',
corax='unadjusted')
print(df)
Gives the unadjusted prices BUT is limited to 3000 observations per call
TSLA.O HIGH CLOSE LOW OPEN COUNT VOLUME
Date
2022-08-23 896.4799 889.36 863.77 874.36 576125 21328348
2022-08-24 910.94 891.29 889.5 892.69 594436 19086572
2022-08-25 302.96 296.07 291.6 302.36 1041466 53230013
2022-08-26 302.0 288.09 287.47 297.43 984030 57163947
Data shows stock split and is not adjusted.
Question 1) How can I use unadjusted stock prices with API refining.data?
Question 2) With Eikon API I can only download 3000 lines per data reference. Is there any way to handle that smartly or get around this?
Thanks for your help!
Best Answer
-
Thank you for reaching out to us.
You can try the following code in the RD library.
rd.get_history(universe="TSLA.O",start="2022-08-01",end="2022-08-31",
fields=["HIGH_1","TRDPRC_1","LOW_1","OPEN_PRC","NUM_MOVES","ACVOL_UNS"],
adjustments="unadjusted")For question 2, it is a limitation in the API. You can try the RD library instead.
1
Answers
-
Thanks
@Jirapongse, I will try this and circle back.0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 6 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 中文论坛