Historical News
Introduction
With the appropriate API news subscription, historical news headlines can be requested from the API using the function EClient.reqHistoricalNews. The resulting headlines are returned to EWrapper.historicalNews.
Request Historical News
EClient.reqHistoricalNews(requestId, conId, providerCodes, startDateTime, endDateTime, totalResults, historicalNewsOptions)
Requests historical news headlines.
Request identifier used to track data.
Contract id of ticker. See Contract Details for how to retrieve conId.
A ’+‘-separated list of provider codes.
Marks the (exclusive) start of the date range. The format is yyyy-MM-dd HH:mm:ss. You can set either startDateTime or endDateTime. If both are set, endDateTime is ignored.
Marks the (inclusive) end of the date range. The format is yyyy-MM-dd HH:mm:ss. You can set either startDateTime or endDateTime. If both are set, endDateTime is ignored.
The maximum number of headlines to fetch (1 – 300).
Reserved for internal use. Should be defined as null.
Python
Java
C++
C#
VB.NET
Receive Historical News
EWrapper.historicalNews(requestId, time, providerCode, articleId, headline)
Returns news headlines for requested contracts.
Request identifier used to track data.
Epoch time of the article’s published time.
News provider code based on requested data.
Identifier used to track the particular article.
Headline of the provided news article.
Python
Java
C++
C#
VB.NET
EWrapper.historicalNewsEnd
EWrapper.historicalNewsEnd(requestId, hasMore)
Returns news headlines end marker.
Request identifier used to track data.
Returns whether there is more data (true) or not (false).

