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 Data APIs /
avatar image
Question by mario.andreoli · Jan 11, 2019 at 11:21 AM · eikon apimatlab

Using Eikon Desktop API in Matlab

I need your support for using Eikon Desktop API in Matlab.

Following instructions:

  • in the tutorial: https://developers.thomsonreuters.com/eikon-apis/net-apis-use-custom-applications/learning?content=8724&type=learning_material_item
  • in the article: https://developers.thomsonreuters.com/article/using-eikon-net-sdk-matlab

I'm trying, without success, to "traslate" the C# code into Matlab script.

I'm not a developer and I don't know the C# programming language, then I find it difficult to translate examples shown in the tutorial in Matlab script.

My needs are as follows:

  1. Given the ric code (eg "AAPL.O"), I would like to retrieve all the data (fields) available. Specifically, I would like to use the GetViewList method.

(Source:

  • https://developers.thomsonreuters.com/eikon-apis/net-apis-use-custom-applications/learning?content=8724&type=learning_material_item
  • https://developers.thomsonreuters.com/system/files/Usage%20Example%20Time%20series%20API.zip).

GetViewList is a method that is part of the "Interface" object ThomsonReuters.Desktop.SDK.DataAccess.TimeSeries.ITimeSeriesDataService

To use it in MATLAB you have to do a workaround (https://www.mathworks.com/matlabcentral/answers/98980-can-i-call-hidden-methods-from-a-net-object-through-the-interface -which-it-tools-in-matlab-7-13).

I created the class in Matlab to load the libraries as shown in the web page example: https://developers.thomsonreuters.com/article/using-eikon-net-sdk-matlab

ts = t.Assembly {1} .AssemblyHandle.GetType('ThomsonReuters.Desktop.SDK.DataAccess.TimeSeries.ITimeSeriesDataService'),

but this object doesn't contain GetViewList method

2. Given the isin code data (eg "US0378331005"), I would like to retrieve all existing trading venue code (ric code).

Specifically, I would like to use the RequestSymbols method (source: https://developers.thomsonreuters.com/eikon-apis/net-apis-use-custom-applications/learning?content=8725&type=learning_material_item)

but I'm not able to create a Matlab script.

3. given the ric code (eg "AAPL.O"), I would like to retrieve time series of closing prices (CLOSE) and daily volumes between a range of arbitrary dates.

I advised the following web pages:

  1. https://developers.thomsonreuters.com/sites/default/files/article_content_files/EikonNETMatlabExample.zip
  2. https://developers.thomsonreuters.com/article/using-eikon-net-sdk-matlab
  3. https://developers.thomsonreuters.com/eikon-apis/net-apis-use-custom-applications/learning?content=8724&type=learning_material_item

but I can't build the script in Matlab that has in output time series of date, price close and volume. Kind Regards,

Mario

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. · Jan 24, 2019 at 05:02 PM

Hi Mario,

1. I don't see how the thread on the Mathworks forum you referenced is relevant here. Yes, GetViewsList method is a member of ITimeSeriesDataService interface. In the timeseries data retrieval example in my article I create an instance of ITimeSeriesDataService object and store it in timeSeries variable:

timeSeries = t.Services.TimeSeries;
Then I use timeSeries variable to call SetupDataRequest method, which is a member of ITimeSeriesDataService interface: timeSeries.SetupDataRequest(...)
Similarly you can call GetViewsList method: timeSeries.GetViewsList(...).
In the attached file you can find a complete example in the module named GetTimeSeriesViewListExample.m.
2. Please find an example module named GetRicsForISINExample.m in the attachment. Both example modules in the attached need to be used in conjunction with treikonnet.m module in the example in my article.
3. TimeSeriesExample.m module in the example in my article does almost exactly what you're looking for. All you need to modify is
  • Change the RIC used in timeSeries.SetupDataRequest method.
  • Remove timeSeriesRequestSetup.WithView('BID') call for the request to use the default view
  • To request timeseries between specific dates replace timeSeriesRequestSetup.WithNumberOfPoints with timeSeriesRequestSetup.From and timeSeriesRequestSetup.To
  • Add bar.Volume.Value to timeSeriesDataOutput in DataReceivedCallback function.

examplesformario.zip


examplesformario.zip (2.3 KiB)
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.

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

get_date_from_today not defined

How can i extract the major shareholders with the Python API?

how to fetch reported total assets of an Europe listed company in USD via eikon API?

Why Python results are different from Eikon ? How to solve it ?

Eikon API: Time Zone in Time Series

  • 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