Receive Live News Headlines

View as MarkdownOpen in Claude

EWrapper.tickNews (

tickerId: int. Request identifier used to track data.

timeStamp: int. Epoch time of the article’s published time.

providerCode: String. News provider code based on requested data.

articleId: String. Identifier used to track the particular article. See [News Article](/tws-api/doc/news/news-articles/introduction) for more.

headline: String. Headline of the provided news article.

extraData: String. Returns any additional data available about the article.
)

Returns news headlines for requested contracts.

1def tickNews(self, tickerId: int, timeStamp: int, providerCode: str, articleId: str, headline: str, extraData: str):
2 print("TickNews. TickerId:", tickerId, "TimeStamp:", timeStamp, "ProviderCode:", providerCode, "ArticleId:", articleId, "Headline:", headline, "ExtraData:", extraData)