Free stock api with - Alternative for Yahoo finance

free realtime api for stock

Finance data is 1 of the most important thing you need for research, backtest your strategy or create a hobby website. However finding a free and reliable data provider is almost impossible after both yahoo finance and google finance have shut down in the past years. Here at Columbia, I and many students, faculty in quant field have found and been using Finnhub for a few months. That's why I want to write this blog to introduce this invaluable resource for everyone who need a FREE and reliable realtime stock api.

US equity and International stock API

Finnhub, as an alternative for yahoo finance, provides realtime equity price for US stocks and 60+ international stock exchanges. The data goes back for years even on 1 minute bar. We have backtested the data against multiple source and find it extremely high quality and reliable (always in 0.5% range with best bid/ask in the market)

Check out these examples (You can click on them to see the result):

Get 500 Daily candles for AAPL

Get 2000 candles on 1 minute timeframe

Company News

Want to get news specific to a company ? Finnhub has already done the heave lyfting for you.

With a simple call to . You will get the latest news for AAPL.

On top of that, you can retrieve News sentiment and news statistics for each company by accessing this endpoint

Analyst's target and recommendation

Want to automate your strategy with analyst' recommendation trend and price target ? Finnhub has sourced that information for you.

Price target endpoint for Netflix

Recommendation trend endpoint

You can check out the link to API Documentation for Stock API.