Hi,
I want to know how to change price unit when download data.For example,when downloading Dutch TTF gas futures data,the original data is denoted by EUR/GWH.How can I change the price unit to USD/MMBTU when using ek.get_timeseries?
thank you
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
Hi,
I want to know how to change price unit when download data.For example,when downloading Dutch TTF gas futures data,the original data is denoted by EUR/GWH.How can I change the price unit to USD/MMBTU when using ek.get_timeseries?
thank you
Hello @lianye,
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 appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS
Hi @lianye
There are 2 conversions in your question:
1. convert EUR to USD currency
get_timeseries does not support currency parameters.
2. convert GWh to MMBtu
This is a static conversion, it can be done in your code.
https://www.unitconverters.net/power/gigawatt-to-mbtu-it-hour.htm
So the answer is no, it is not possible to convert the unit in get_timeseries (because of the currency)
Since you did not include any instrument, I think you may try using get_data
For example, I can get the price of equity in 2 different currencies.
You may try the same on the Dutch TTF Gas future instrument.