Know which companies a story is about
As quantitative strategies become more complex, firms need to augment the content of breaking stories with contextual details that help differentiate mundane items from significant, market-moving events.
Named-entity detection sorts through the noise and identifies relevant signals from hundreds of thousands of companies, government organizations, places, currencies and commodities.
- Entities are disambiguated, so Apple the company is told apart from the fruit
- One ID per entity in every language
- Look up a company by its stock ticker, ISIN, CIK or domain name
# resolve stock tickers to concept IDs once
tickers = ["NVDA", "TSM", "ASML"]
universe = [er.getConceptUri(t, lang = "ticker")
for t in tickers]
q = QueryArticlesIter(
conceptUri = QueryItems.OR(universe),
sourceGroupUri = er.getSourceGroupUri("business top100"))
for art in q.execQuery(er, sortBy = "date", maxItems = 100):
print(art["dateTime"], art["title"])
const api = "https://eventregistry.org/api/v1";
const response = await fetch(api + "/article/getArticles", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"apiKey": "YOUR_API_KEY",
"conceptUri": [
"http://en.wikipedia.org/wiki/Nvidia",
"http://en.wikipedia.org/wiki/TSMC",
"http://en.wikipedia.org/wiki/ASML_Holding"
],
"conceptOper": "or",
"sourceGroupUri": "business/top100",
"resultType": "articles",
"articlesSortBy": "date",
"articlesCount": 100
}),
});
const data = await response.json();
for (const art of data.articles.results) {
console.log(art.dateTime, art.title);
}
curl -X POST "https://eventregistry.org/api/v1/article/getArticles" \
-H "Content-Type: application/json" \
-d '{
"apiKey": "YOUR_API_KEY",
"conceptUri": [
"http://en.wikipedia.org/wiki/Nvidia",
"http://en.wikipedia.org/wiki/TSMC",
"http://en.wikipedia.org/wiki/ASML_Holding"
],
"conceptOper": "or",
"sourceGroupUri": "business/top100",
"resultType": "articles",
"articlesSortBy": "date",
"articlesCount": 100
}'
POST https://eventregistry.org/api/v1/article/getArticles
Content-Type: application/json
{
"apiKey": "YOUR_API_KEY",
"conceptUri": [
"http://en.wikipedia.org/wiki/Nvidia",
"http://en.wikipedia.org/wiki/TSMC",
"http://en.wikipedia.org/wiki/ASML_Holding"
],
"conceptOper": "or",
"sourceGroupUri": "business/top100",
"resultType": "articles",
"articlesSortBy": "date",
"articlesCount": 100
}
Comes back with
dateTimetitlesourceeventUri