import eikon as ek
import csv ek.set_app_id('ID')
df = ek.get_timeseries([".MERV"], start_date="2000-01-01", end_date="2018-05-18",interval='minute')
writer = csv.writer(open("C:/data/MERV.csv", 'w'))
for row in df: writer.writerow(row)
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
import eikon as ek
import csv ek.set_app_id('ID')
df = ek.get_timeseries([".MERV"], start_date="2000-01-01", end_date="2018-05-18",interval='minute')
writer = csv.writer(open("C:/data/MERV.csv", 'w'))
for row in df: writer.writerow(row)
Hi,
Thank you for your participation in the forum.
Are any of the replies below satisfactory in resolving your query?
If yes please click the 'Accept' text next to the most 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,
Thank you for your participation in the forum.
Are any of the replies below satisfactory in resolving your query?
If yes please click the 'Accept' text next to the most 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
Pandas dataframe provides method to write dataframe to a csv file. Here's the documentation. And here's the example for your use case.
df.to_csv('C:/data/merv.csv')