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:
- 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 Example Time series API.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:
- https://developers.thomsonreuters.com/sites/default/files/article_content_files/EikonNETMatlabExample.zip
- https://developers.thomsonreuters.com/article/using-eikon-net-sdk-matlab
- 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
Best Answer
-
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.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 625 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛