The article outlines the top five free stock market APIs available in 2020, providing developers and traders with access to financial data for building trading strategies.
Abstract
The financial APIs market is rapidly evolving, necessitating up-to-date information on available tools. The article discusses five of the best free stock market APIs of 2020, including Yahoo Finance, Google Finance in Google Sheets, IEX Cloud, AlphaVantage, and World trading data. These APIs offer a range of data, from real-time to historical stock prices, and are essential for generating technical indicators and developing trading strategies. The author highlights the ease of use and affordability of these services, with some offering free access within certain usage limits. The article also mentions other APIs like Polygon.io, Intrinio, and Quandl, which provide more comprehensive data at a higher cost, catering to more advanced trading needs.
Opinions
The author considers Yahoo Finance's API as having been the "gold standard" for stock data APIs, and its return to service is a significant event for users.
Google Sheets' GOOGLEFINANCE feature is seen as a valuable tool for accessing stock market data, despite the deprecation of Google Finance.
IEX Cloud is praised for its cost-effectiveness, offering a substantial amount of data in its free trial and affordable subscription plans.
AlphaVantage is recognized for its generous free API request limits and its scalable options for increased usage.
World trading data is noted for its free access to real-time stock data and its reasonable pricing for more extensive data needs.
The author suggests that Polygon.io, Intrinio, and Quandl may not be ideal for beginners due to their higher costs, but they offer extensive data feeds that could be valuable for professional traders.
Quandl is highlighted as a comprehensive platform for accessing various financial data APIs, with a range of pricing models, and is recommended for users who are less constrained by budget.
The financial APIs market grows so quickly that last year’s post or platform is not a good choice this year. So in this story, I will show you the best 5 stock market APIs that I use in 2019.
What is stock market data API?
Stock market data APIs offer real-time or historical data on financial assets that are currently being traded in the markets. These APIs usually offer prices of public stocks, ETFs, ETNs.
These data can be used for generating technical indicators which are the foundation to build trading strategies and monitor the market.
Data
In this story, I mainly care about price information. For other data, there are some other APIs mainly for that use cases which will not be covered here.
I will talk about the following APIs and where they can be used:
Yahoo Finance API was shut down in 2017. So you can see a lot of posts about alternatives for Yahoo Finance. However, it went back sometime in 2019. So you can still use Yahoo Finance to get free stock market data. Yahoo’s API was the gold standard for stock-data APIs employed by both individual and enterprise-level users.
Yahoo Finance provides access to more than 5 years of daily OHLC price data. And it’s free and reliable.
There’s a new python module yfinance that wraps the new Yahoo Finance API, and you can just use it.
# To install yfinance before you use it.
> pip install yfinance
Below is an example of how to use the API. Check out the Github link above to see the full document, and you are good to go.
2. GOOGLEFINANCE
Google Finance is deprecated in 2012. However, it doesn’t shut down all the features. There’s a feature in Google Sheets that support you get stock marketing data. And it’s called GOOGLEFINANCE in Google Sheets.
The way it works is to type something like below and you will get the last stock price.
IEX Cloud is a new financial service just released this year. It’s an independent business separate from IEX Group’s flagship stock exchange, is a high-performance, financial data platform that connects developers and financial data creators.
It’s very cheap compared to other subscription services. $9/month you almost can get all the data you need. Also, the basic free trial, you already get 500,000 core message free for each month.
There’s a python module to wrap their APIs. You can easily check it out: iexfinance
Alpha Vantage Inc. is a leading provider of various free APIs. It provides APIs to gain access to historical and real-time stock data, FX-data, and cryptocurrency data.
With Alphavantage you can perform up to 5 API-requests per minute and 500 API requests per day. 30 API requests per minute with $29.9/month.
Also, full intraday data API and currency API access are given. For those who need more data points, plans from $8 per month to $ 32 per month are available.
Right now there are four different plans available. For free access, you can get up to 5 stocks per request (real-time API). Up to 250 total requests per day. The subscription plan is not that expensive, and you can get a
They provide URL and your response will be JSON format. There’s currently no available python module to wrap their API yet. So you have to use requestsor other web modules to wrap their APIs.
It’s $75/month only for the realtime stock market. Also, for EOD price data, it’s $40/month. You can get EOD price data almost free from other APIs I suggest. Even though they have 206 pricing feeds, ten financial data feeds and tons of other data to subscribe. The price is not that friendly for independent traders.
Quandl is an aggregated marketplace for financial, economic and other related APIs. Quandl aggregates APIs from third-party marketplaces as services for users to purchase whatever APIs they want to use.
So you need to subscribe to the different marketplace to get different financial data. And different APIs will have different price systems. Some are free and others are subscription-based or one-time-purchase based.
Also, Quandl has an analysis tool inside its website.
Quandl is a good platform if you don’t care about money.
Wrap Up
Learning and building a trading system is not easy. But the financial data is the foundation of all. If you have any questions, please ask them below.