Historical headlines
get_historical_newsFetch past news headlines for an instrument, newest first. Get provider codes and article IDs for each headline, with publication timestamps, to retrieve full articles.
Instructions
Return past news headlines about one instrument, newest first.
Each headline has provider_code and article_id for get_news_article, plus the
publication time (UTC). Works for stocks and other instruments IBKR tags news
with. Default limit 50, at most 300 (IBKR's cap per request); for more, move `end`
back to the oldest time returned. Needs a subscription to each provider searched
(see get_news_providers).
Errors: invalid_request for a provider the login is not subscribed to; not_found
when there are no headlines in the range (widen it); request_timeout when IBKR
does not answer within 4 seconds (retry with a narrower range).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of the range, ISO 8601 (no time zone means UTC). Omit for now. | |
| limit | No | Maximum number of items to return. Omit for the tool's default; larger values are capped. The result's truncated flag says whether more were available. | |
| start | No | Start of the range, ISO 8601 (no time zone means UTC). Omit for none. | |
| contract | Yes | The instrument. A con_id alone is unambiguous; otherwise give symbol and sec_type, plus expiry, strike and right for options. | |
| provider_codes | No | Provider codes to search, e.g. ["BRFG", "DJNL"] (from get_news_providers). Omit for every subscribed provider. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of the range asked for (UTC). | |
| start | No | Start of the range asked for (UTC). | |
| contract | Yes | ||
| headlines | Yes | ||
| truncated | No | True when the result was cut to the limit. | |
| provider_codes | Yes | The providers that were searched. |