question

Upvotes
Accepted
7 1 0 4

How to convert timeseries quotes from original currency to e.g. EUR?

When requesting bid / ask quotes for e.g. "NEL.OL" following your tutorial I get the values in NOK currency.

Is there a way to convert the values in C# / .NET using the EIKON Desktop Data API to a certain fixed currency, e.g. EUR?

If that is not possible is there an elegant way to get the ISO currency code together with the bid / ask quotes when requesting timeseries data for a RIC?

Thanks a lot in advance for any help.

eikoneikon-data-apieikon-com-apitime-series.netforex
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.

Upvotes
Accepted
38.1k 71 35 53

@Sascha K

There is no interface in ITimesSeriesDataService to specify a currency code in the request.

However, you can use the GetCommonData method to get the currency code for a specified instrument RIC.

 IMetadataRequest metaRequest = timeSeries.Metadata.GetCommonData("NEL.OL" 
	,commonData => 
		{ 
			Console.WriteLine("Currency: {0}", commonData.Currency.ToString()); 
		} 
	, error => 
		{ 
			Console.WriteLine(error.Message); 
		} ); 

The output is:

Currency: NOK 
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.

Upvotes
7 1 0 4

Thank you, Jirapongse. That will work for me.

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