Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 0 2

== How to apply with Python Eikon API using C# .NET Framework IronPython ? ==

Possible if we suppose using this code ?

I would like to use this instead of WhiteArk Eikon Web Browser Test Case

Python

import eikon as ek
def Eikon():
	ek.set_app_id('xxxxxxxxxxxxxxx')
	value = ek.get_symbology(["MSFT.O", "GOOG.O", "IBM.N"], from_symbol_type="RIC", to_symbol_type="ISIN")
	return value

C#

using System;
using IronPython.Hosting;
using Microsoft.Scripting.Hosting; 
public class PythonEikonAPI 
{    
static void Main()
{ var ipy = Python.CreateRuntime(); dynamic test = ipy.UseFile("Test.py"); test.Simple(); } }
eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apic#
icon clock
10 |1500

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

@teerawit.seekasamit
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS

Hello @teerawit.seekasamit

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,
AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 11 27

I believe it should be possible to use Eikon Python library in IronPython, though I've never tried it myself. If you just need to convert RICs to ISINs in a C# application running alongside Eikon you may be better off using the symbology conversion in Eikon .NET API:
https://developers.thomsonreuters.com/eikon-apis/net-apis-use-custom-applications/learning?content=8725&type=learning_material_item
And if you need complete access to fundamental & reference data from Eikon in a C# application you can use DEX2 library of Eikon COM APIs:
https://developers.thomsonreuters.com/eikon-com/eikon-desktop-data-api/learning?content=804&type=learning_material_item
or this open source .NET package for Eikon Data APIs:
https://github.com/TR-API-Samples/Article.EikonDataAPI.DotNet.Library
I'm afraid I cannot make a recommendation which of the above options is better for your use case, as I'm afraid I don't know what "WhiteArk Eikon Web Browser Test Case" refers to.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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