Posts

Showing posts from April, 2018

Sentiment Analysis with Tiingo and Google

Image
A few days ago I was aimlessly surfing the net when I realized that both Microsoft and Google have text sentiment analysis APIs which are both simple to use and free to try out. This got me wondering if I could apply it to financial news and potential build some kind of market/ticker sentiment indicator. The answer is kinda. Below is the output of the script that I ended up with after a few hours of hacking. Story Time Enter Microsoft... The first API I had seen was actually the Microsoft one , as I was wanting to play with Microsoft's Azure for totally unrelated purposes. As soon as I saw it, I knew what I wanted to do - Tiingo has a fantastic news API which lets you search for news items based by financial tickers. It's super simple to use, you just do a GET on a URL with the tickers you want to look up on, like the following (requires paid Tiingo account): https://api.tiingo.com/tiingo/news?tickers=msft,googl,aapl,fb and it'll bring back a whole bun...