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 nicola.pestalozzi · May 09, 2018 at 10:46 AM · eikoneikon-com-apiexcelvbacaching

.Subscribe Method with Cache

Hello,
when I call the Dex2 API from VBA with the .Subscribe method I can specify if it should use the cache or not (.Subscribe True or .Subscribe False).
Can anyone elaborate a bit on how the cache works?
Where is it stored exactly? How big can it get? How long is it kept? Is it stored per Instrument or per every single field?

I ask this because since I'm interested in fundamental data and historical prices, often a cached version is good enough (no need for real-data). But the next day, the latest, I would need again a fresh load. Many thanks!

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.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · May 11, 2018 at 08:37 PM

@nicola.pestalozzi
You're right. I'm not sure what I did wrong in my testing the other day. When I re-tested it today I saw the request going on the wire only if UseCache parameter in the Subscribe method is set to False. I was able to locate the cache files named cache.idx and cache_0 under %LOCALAPPDATA%\Thomson Reuters\Eikon User\Cache\<UUID>\
where the requests and the responses are cached. I was also able to dig out some description of how the cache is managed. You can find it by selecting Help - Thomson Reuters Eikon - Microsoft Office Help from Thomson Reuters tab in Excel ribbon and entering "fundamental data cache" in the search bar.

Comment
nicola.pestalozzi

People who like this

1 Show 0 · 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
REFINITIV
Answer by Alex Putkov.1 · May 09, 2018 at 05:17 PM

I don't think this parameter is used any more. Many years ago Dex2 library was implementing a caching mechanism and stored the cache in user profile on the desktop. But not any more. As far as I can see irrespective of the value of this parameter all requests are sent upstream. As this parameter was done away with the signature of the Subscribe method must have been kept the same to preserve backwards compatibility.

Comment

People who like this

0 Show 0 · 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
Answer by nicola.pestalozzi · May 11, 2018 at 02:08 AM

Hi Alex,

I'm pretty sure this is still working because I can observe different behaviour when I set True or False after .Subscribe.
Some sort of caching *does* happen with .Subscribe True and I would like to understand how the mechanism work. Is there any documentation somewhere?
Comment

People who like this

0 Show 2 · 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
REFINITIV
Alex Putkov.1 ♦♦ · May 11, 2018 at 10:28 AM 0
Share

I'm not aware of any documentation, but I'm very interested to learn where you see the differences. I ran a few tests using Fiddler yesterday before I posted my reply. What I saw was that no matter whether I set the parameter to True or False I see the same request going on the wire. This to me confirms that no caching is done on the local machine. If there was a local cache the second time I run the same request with .Subscribe(True), I'd expect the response to come from the cache and the request to not go on the wire. How did you test it and where did you see the difference?

avatar image
nicola.pestalozzi Alex Putkov.1 ♦♦ · May 11, 2018 at 10:57 AM 0
Share

Hi Alex, I see a considerable difference in the sourcing time when I set True for a repeated query. I just tried to source 20 attributes for 500 instruments with "False" and it took me almost 2 minutes. Repeating the operation with "True" took me less than 1 second. Repeating again with "False" took me about 30 seconds. By repeating again, the times remain stable (1 second vs. ~30 seconds). I cannot tell if the content effectively changed, but something makes a repeated query much faster (almost immediate) with "True".

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 >
8 People are following this question.

Related Questions

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

Downloading fundamental stocks data using API in VBA

Download manager URLs

Can I obtain News with the COM API?

Can I find the default Eikon for Excel RHistory fields for an instrument using the COM APIs and VBA?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges