Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon COM /
avatar image
Question by JZ · Nov 15, 2020 at 09:51 PM · vbaeikon com apieikon excel vba

Can we download un-adjusted stock price under DEX2 COM API

Hi team, using Excel VBA and DEX2 COM API, is it possible to download un-adjusted historical stock price?

I am trying "Adjusted:0" in either "Request Parameters" and "Display Parameters" and no luck. Any thoughts?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov. · Nov 15, 2020 at 11:51 PM

I suspect you're using TR.PriceClose field, which does not provide unadjusted price history. Use TR.CLOSEPRICE instead:

Public Sub GetUnadjustedPriceHistory()
    If oDEX2Mgr Is Nothing Then
        Set oDEX2Mgr = CreateReutersObject("Dex2.Dex2Mgr")
        Set oDEX2MgrADC = oDEX2Mgr
        lCookie = oDEX2MgrADC.Initialize(DE_MC_ADC_POWERLINK)
    End If
    
    Set oRData = oDEX2Mgr.CreateRData(lCookie)
    oRData.InstrumentIDList = "AAPL.O"
    oRData.FieldList = Array("TR.CLOSEPRICE(Adjusted=0)")
    oRData.RequestParam = "SDate=0 EDate=-1Y Frq=D"
    oRData.DisplayParam = "CH:Fd RH:Date"
    oRData.Subscribe False
End Sub
Comment

People who like this

0 Show 3 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
JZ · Nov 16, 2020 at 03:36 AM 0
Share

Alex, thanks. That works!

Curious, what's the exact difference between TR.PriceClose and TR.ClosePrice, in the context of DEX2 COM API. Say I have a few dozen stock tickers and I am downloading their historical prices, which field is preferred? Many thanks.

avatar image
REFINITIV
Alex Putkov. ♦♦ JZ · Nov 16, 2020 at 04:46 PM 0
Share

See the explanation in the accepted answer on this thread.

avatar image
JZ Alex Putkov. ♦♦ · Nov 16, 2020 at 05:15 PM 0
Share

Thank you. You answered all my questions. Appreciated.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

Download manager URLs

How do I trigger a VBA macro from within the TR function in Eikon Excel

Excel x64 DLL Eikon CreateReutersObject?

Cannot retrive data in VBA from AdxRtHistory

How to call Adinterp in VBA code

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges