I am attempting to get the "next" dividend date for a stock as of a certain date using the TR.EventStartDate field. For example, I am looking to search over the subsequent year to get the next date a dividend was expected as of 1990-01-01 by adding the following field to the query:
ek.TR_Field('TR.EventStartDate', params={'Sdate': '1990-01-01', 'Edate': '1991-01-01', 'EventType': 'EXDIV'})
When I've run this query in the past I've only had a single result returned (i.e. the first date), but now I'm starting to get multiple results.
How can I go about limiting the results of the query to only the first result?