Stocks · News and market map
Stocks news
/v1/stocks/newsstocksNewsNews articles with title, summary, publisher, link and the tickers each concerns, newest first, paged back in time with cursor_id. Each insight gives the sentiment (positive, neutral or negative) the article carries for one ticker with the reasoning. Without symbol the market-wide feed is returned. The feed is refreshed continuously and cached for a minute; without start_time it reaches back as far as your plan's history allows.
Example request
curl -sS --get "https://api.ordermap.si/v1/stocks/news" \
-H "Authorization: Bearer $ORDERMAP_API_KEY" \
--data-urlencode symbol=AAPLconst params = new URLSearchParams({
symbol: "AAPL",
});
const res = await fetch(`https://api.ordermap.si/v1/stocks/news?${params}`, {
headers: { Authorization: `Bearer ${process.env.ORDERMAP_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data, meta } = await res.json();
console.log(data, meta.coverage);
// Paginated: repeat with cursor_id set to pagination.next_cursor_id until it is null.Set ORDERMAP_API_KEY to your key. Replace the dates with a recent trading date.
Parameters
5 parameters, none required.
| Parameter | Type and limits | Description |
|---|---|---|
symbolqueryoptional | stringat most 11 characterspattern ^[A-Za-z]{1,6}(\.[A-Za-z0-9]{1,4})?$ | Only articles that mention this ticker symbol. |
start_queryoptional | integerunix-msmin 946684800000max 4102444800000 | Inclusive earliest publication time. |
end_queryoptional | integerunix-msmin 946684800000max 4102444800000 | Exclusive latest publication time. |
limitqueryoptional | integerdefault 20min 1max 100 | Maximum rows to return. |
cursor_queryoptional | stringat most 1024 characters | Opaque cursor returned as pagination.next_cursor_id; resumes the same query on the next page. |
Response
| Status | Meaning | Body |
|---|---|---|
200 | Successful response. | Schema below |
400 | Invalid, unknown or repeated parameters, or an invalid cursor. | Error object |
401 | Missing or invalid API key. | Error object |
403 | The plan, dataset release or account state does not allow this request. | Error object |
422 | The request is valid but no data exists for it. | Error object |
429 | Rate limit, burst limit or cooldown; wait Retry-After seconds.Retry-After | Error object |
500 | Internal error. | Error object |
503 | Data temporarily unavailable; retry after Retry-After seconds.Retry-After | Error object |
504 | The request timed out. | Error object |
Authenticated responses carry the X-RateLimit-* headers (see rate limits); 429 and 503 add Retry-After.
200 response body
dataarray<object>required16 fields insideauthorstring | nullrequiredAuthor.descriptionstring | nullrequiredSummary of the article.idstringrequiredArticle id.image_urlstring | nullrequiredLink to the article image.insightsarray<object>requiredSentiment per ticker.3 fields insidereasoningstringrequiredWhy the article carries this sentiment.sentimentstringrequiredSentiment.positiveneutralnegativesymbolstringrequiredTicker symbol.
keywordsarray<string>requiredKeywords.publisherobject | nullrequiredThe publishing outlet.2 fields insidehomepage_urlstring | nullrequiredOutlet website.namestringrequiredOutlet name.
symbolsarray<string>requiredTickers the article mentions.timestampintegerunix-msrequiredPublication time. Unix epoch milliseconds (UTC).titlestringrequiredHeadline.urlstring | nullrequiredLink to the article at the publisher.
metaobjectrequiredMeta objectpaginationobjectrequiredPagination object
Example response
{
"data": [
{
"author": "A. Reporter",
"description": "The company introduced its next-generation processor.",
"id": "8ec638777ca03b553ae516761c2a22ba2fdd2f37befae3ab6fdab74e9e5193eb",
"image_url": null,
"insights": [
{
"reasoning": "The new chip raises expected margins.",
"sentiment": "positive",
"symbol": "AAPL"
}
],
"keywords": [
"chips"
],
"publisher": {
"homepage_url": "https://example.com",
"name": "Example News"
},
"symbols": [
"AAPL"
],
"timestamp": 1792071000000,
"title": "Apple unveils new chip",
"url": "https://example.com/apple-chip"
}
],
"meta": {
"as_of": 1760659200123,
"coverage": {
"complete": true
},
"delay_ms": 0,
"delayed": false,
"request_id": "0199f0c2-5a1e-7c3b-9d4e-2b6f8a1c3d5e",
"source": "sip"
},
"pagination": {
"count": 1,
"has_more": false,
"limit": 20,
"next_cursor_id": null,
"next_url": null
}
}Values are illustrative. Missing values are null, never 0.