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
Hello @yuyang
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 reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
Hello @yuyang
From my finding, one possible way is from the answer of this question, you can use Timeseries / Date functionality available in pandas data frame. This example adds a column to the data frame containing dates adjusted to weekdays:
df = ek.get_timeseries('PTT.BK','CLOSE',interval='daily',start_date='2020-05-01') from pandas.tseries.offsets import * df['Trading Day'] = df.index + Day(1) - BDay(1) df
The example output shows trading day of PTT.BK which is a RIC in The Stock Exchange of Thailand: