Query news stories by time window
https://quant-ws.prod.thinkalpha.io/news/queriesReturns the news stories that mention any of the requested symbols within an optional time window, in one array.
A news story is an article or press release tagged with ticker symbols; stories tagged with more than three symbols are never returned. start is inclusive and end is exclusive; omit either to leave that side open. Stories are sorted by publishedAt and then id, newest first by default (sort: "desc"). maxResults defaults to 500; send a whole number from 1 to 500, and larger values are treated as 500 (zero, negative and fractional values are not supported and do not enforce the cap). There is no cursor, and this operation cannot read every story without gaps: moving end to the publishedAt of the last story you received repeats stories with sort: "asc" and skips stories published at that same instant with sort: "desc". To read further, use POST /news/page, which pages without gaps. Symbols are matched exactly as sent; use upper-case ticker symbols.
The response carries an ETag when the service has observed an eligible story insertion for at least one requested symbol. Send it back in If-None-Match with the same request body to receive 304 Not Modified when the observed latest timestamp and build match. The timestamp is tracked in memory from insert events, not from the query window; it may not reflect older insertions, updates, or deletions. The comparison is exact.
Any authenticated caller can use this operation; results do not depend on who the caller is. Use POST /news/page for position-based paging and scrolling feeds, and GET /news/story/{articleId} for the full text of a story.
- Authentication
- Bearer token or Client credentials (HTTP Basic)
Headers
- if-none-match string
The `ETag` value from a previous response to the same request body. When it still matches, the operation returns `304 Not Modified` with no body. Compared exactly; list syntax and `*` are not supported.
Request body application/json required
Selects the stories to return: the symbols, an optional time window, a result cap and a sort order.
Selects the stories to return: the symbols, an optional time window, a result cap and a sort order.
- symbols string[] required
Ticker symbols to include, matched exactly as written (use upper case). A story is returned when it is tagged with at least one of them. An empty array returns no stories.
- start string<date-time>
Start of the time window, inclusive: only stories published at or after this instant are returned. ISO 8601 UTC instant with seconds. Omit for no lower bound.
- end string<date-time>
End of the time window, exclusive: only stories published before this instant are returned. ISO 8601 UTC instant with seconds. Omit for no upper bound.
- maxResults number
Maximum number of stories to return: send a whole number from 1 to 500. Defaults to 500; larger values are treated as 500. Zero, negative and fractional values are not supported and do not enforce the cap, so do not send them.
- sort SortOrder
Sort order by publication time: `asc` for oldest first, `desc` for newest first. Defaults to `desc`. Stories published at the same instant are ordered by id in the same direction.
Responses
The matching news stories, sorted by publication time and then id, at most `maxResults` of them. The `ETag` response header, when present, can be sent back in `If-None-Match`.
A news story as returned in lists: its identifier, headline, publication time, link and symbols. The full text is available from `GET /news/story/{articleId}`.