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 0 0 1

ParserError: Unknown string format: tick

Hi,


do you have any idea,why got the above named error from following function:

def get_ts():

import eikon as ek

import pandas as pd

ek_app_key='XY'

ek.set_app_key(ek_app_key)

ticker=['ALVG.DE','BMWG.DE']

start_date='2023-04-24T09:01:00'

end_date='2023-04-24-24T09:15:00'

interval='tick'

df=ek.get_timeseries(ticker,start_date,end_date,interval)

print(df)

return



Thank you.

eikon-data-api#productrt-get
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.

1 Answer

· Write an Answer
Upvote
Accepted
80k 257 52 75

@sschneider

Thanks for reaching out to us.

You can use the help(ek.get_timeseries) command to verify how to use the get_timeseries method.

get_timeseries(rics, fields=None, start_date=None, end_date=None, interval=None, count=None, calendar=None, corax=None, normalize=False, raw_output=False, debug=False)

You need to specify fields after rics so the code should look like this.

ticker=['ALVG.DE','BMWG.DE']
start_date='2023-04-24T09:01:00'
end_date='2023-04-24-24T09:15:00'
interval='tick'
df=ek.get_timeseries(ticker,None,start_date,end_date,interval, normalize=True)
print(df)

The output is:

1683684355522.png

I hope that this information is of help.


1683684355522.png (114.3 KiB)
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.

Thanks for the fast reply, it works out well.

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.