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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonc#
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
39.2k 75 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.refinitiv.com/en/api-catalog/eikon/-net-apis-for-use-in-custom-applications/tutorials#symbology
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.refinitiv.com/en/api-catalog/eikon/com-apis-for-use-in-custom-applications/tutorials#tutorial-3-fundamental-and-reference-data
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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea