Topics
Equities with Topic
Fetch the equities associated with a topic
GET /topics/{topic_id}/equities
Parameter | Type | DataType | Description |
---|---|---|---|
size | query | integer | The number of matches to return |
topic_id | path | integer | ID of the topic to fetch equities for |
from_index | query | integer | The index to start returning from, combine with size for paging |
Request
https://premium.aiera.com/api/topics/133213/equities?size=2
Response
[
{
"equity_id": 16426,
"local_ticker": "TBCG",
"mic": "XLON",
"bloomberg_ticker": "TBCG:LN",
"isin": "GB00BYT18307",
"gics_sector": "Financials",
"gics_sub_sector": "Diversified Banks"
},
{
"equity_id": 20869,
"local_ticker": "FRAF",
"mic": "XNAS",
"isin": "US3535251082",
"gics_sector": "Financials",
"gics_sub_sector": "Regional Banks"
}
]
Code Samples
Bash
curl --request GET \
--url 'https://premium.aiera.com/api/topics/{topic_id}/equities' \
--header 'X-API-Key: xxx'
Python
import requests
requests.get("https://premium.aiera.com/api/topics/{topic_id}/equities", headers={"X-API-Key": "xxx"})