This API returns sentiment data on a 1 to 10 scale (or -5 to 5 on demand) for various types of entities: quoted or unquoted stocks, indices, commodities, currency pairs, crypto currencies, topics etc … A score of 1, 2, 3 denotes low sentiment, a score of 4, 5, 6, 7 denotes neutral sentiment a score of 8, 9, 10 denotes positive sentiment.
HTTP Request URL:
GET : /idata/get_sentiment_history
Parameters:
Multiple nameids of same type can be passed in csv format.
As an alternative to nameid=[c_id], company can be specified with a given ticker. For instance to retrieve Apple data, you may specify:
https://feed.finsents.com/idata/get_sentiment_history?company=AAPL:US
Refer to static data user guide for more details.
As an alternative to nameid=[in_id], index can be specified to retrieve sentiment for a given index or a list of indexes. For instance, to retrieve SP500 data, you may specify:
https://feed.finsents.com/idata/get_sentiment_history?index=SP500
Refer to static data user guide for more details.
As an alternative to nameid=[cm_id], crypto can be specified to retrieve sentiment for a given crypto-currency or a list of crypto-currencies. For instance, to retrieve data for Bitcoin, you may specify:
https://feed.finsents.com/idata/get_sentiment_history?crypto=BTC
Refer to static data user guide for more details.
As an alternative to nameid=[cm_id], commodity can be specified to retrieve sentiment for a given commodity or a list of commodities. For instance to retrieve sentiment for Bitcoin, you may specify:
https://feed.finsents.com/idata/get_sentiment_history?commodity=GOLD
Refer to static data user guide for more details.
As an alternative to nameid=[fx_id], a currency pair can be specified, for instance, to retrieve sentiment for EUR/USD, you may specify:
https://feed.finsents.com/idata/get_sentiment_history?forex=EUR/USD
Refer to static data user guide for more details.
Additional timezones can be added on demand, for instance start of trading hours / end of trading hours, please contact us for more details (contact@infotrie.com). E.g.:
Examples:
To retrieve sentiment data for Microsoft (company id = 1389) between the January 1st 2019 and April 3rd 2019 on the Singaporean timezone:
https://feed.finsents.com/idata/get_sentiment_history?nameid=c_1389&start_date=2019-04-03&end_date=2019-01-01&timezone=Asia/Singapore
To retrieve sentiment for a company or an inde or a crypto currency or a commodity or a currency pair, please try:
https://feed.finsents.com/idata/get_sentiment_history?company=AAPL:US
https://feed.finsents.com/idata/get_sentiment_history?index=SP500
https://feed.finsents.com/idata/get_sentiment_history?crypto=BTC
https://feed.finsents.com/idata/get_sentiment_history?commodity=GOLD
https://feed.finsents.com/idata/get_sentiment_history?forex=EUR/USD
Response:
{ “data”: [ { “name”:<“entity 1”>, “start_date”: <YYYY/MM/DD>, “end_date”: <YYYY/MM/DD>, “sector_id”: <s_id>, “sector_name”: < >,
“sentiment”: [ {“high”: < >,”low” :< >,”buzz” :< >,”sentiment “:< >,”date” : <DD/MM/YYYY>, “volume”: < > } … , … ] },
{“name”: <“entity 2”>, ……“sentiment”:[{…}] …..} ] }
where :
Get in touch with us for details on setup and additional custom services pricing