Blog

API for Stock Data

Barchart’s Stock Data APIs let you power your apps, websites and software with reliable financial market data directly from the cloud. Whether you’re looking for real-time data, delayed data, end-of-day data, or historical data, Barchart has a solution for you.

Barchart OnDemand is built upon the Amazon Web Services (AWS) cloud infrastructure and features the ability to easily access an extensive amount of market data and information. Specifically popular with FinTech startups, trading and investment firms, software and app developers, and digital media providers, Barchart is a leader in providing cloud-based market data APIs to our clients.

What Stock Market Data APIs Are The Most Popular?

Quote Data API

The getQuote API is used to request price data, either real-time, delayed or end-of-day, by symbols on stocks, indexes, mutual funds, ETFs, futures, foreign exchange, or cryptocurrencies.

Historical Data API

The getHistory API is used to request historical time series data on stocks, indexes, mutual funds, ETFs, futures, foreign exchange, or cryptocurrencies. Historical data is available as tick, minute bars or end-of-day data.

Equities Data by Exchange API

Receive all real-time or delayed equities market data by exchange through a single onDemand query with the getEquitiesByExchangeAPI.

Chart API

The getChart API is used to request a custom chart image with variables such as chart type, size, period and technical indicators, based on a symbol.

What can you do with Stock Market Data APIs?

Stock Data APIs

Specific Use Cases:

Brokerage

Attract, engage, and retain your customers with high-quality market data and financial tools. Our APIs for global market data can power your entire operation for less than you thought possible. Check out this case study and learn how Coquest, a brokerage firm executing Commodity Futures Trades, uses Barchart’s data to stay on top of the markets and fulfill their customers’ needs.

Financial Services

Our tools for financial services let you focus on the things that matter most – your customers and prospects. We deliver engaging and customized content that tells the story of your products, while saving you the cost and resources required to build and maintain this infrastructure in-house. Check out this case study to learn how TradersPro, who offers a unique proprietary screening system that identifies qualified powerful stocks, uses Barchart’s getNews API to provide their users with news headlines throughout the day, every day to ensure they are properly informed.

Media

From fully managed, bespoke financial portals, to easily integrated widgets, our solutions can power your customer facing application with dynamic data, tools, and market intelligence. Transform complex financial information into engaging and interactive experiences. Check out this case study and learn how The Globe and Mail, Canada's foremost news media company, refreshed their entire suite of financial tools with Barchart’s Digital Solutions.

Software

The financial tools, information, and high-quality market data you need - all seamlessly and cohesively integrated with your workflow. Our consolidated global exchange data can get you started faster than you thought possible. Power your products with data, analytics, charting, and news from Barchart. Check out this case study to learn how Trend Spider, who offers trading software for day and swing traders, powers their software with Barchart’s getQuote and getHistory API.

Wealth Management

Provide your users with access to the financial tools, information, and high-quality market data they need. Use our content and tools to create engaging user experiences for your clients. Check out this case study to learn how Simplifi by Quicken, the best-selling personal finance software in the United States, uses Barchart’s data to help their customers keep track of and manage their investments.

How Can You Access Our Stock Market Data APIs?

Barchart’s OnDemand APIs can return data in multiple formats (XML, JSON or CSV) making them easy-to-use and integrate. Data can also be delivered through our digital solutions.

Stock Data API Digital Solutions

Barchart OnDemand is compatible with any operating system, such as Windows, Linux, iOS or Android, and any programming language, such as Java, PHP or ASP.NET.

To get started, contact us to receive your unique API key. Once you have your API key you can customize your queries using the inputs found in the API documentation.

For example, the below call returns the last price for Apple $AAPL in CSV format.

https://ondemand.websol.barchart.com/getQuote.csv?apikey=YOURAPIKEY&symbols=AAPL&fields=lastPrice.

You can query for XML, JSON, or CSV by changing the extension of the API. See the bolded section in the API query below.

https://marketdata.websol.barchart.com/getHistory.xml?apikey=YOUR_API_KEY&symbol=IBM&type=daily&startDate=20160608000000

https://marketdata.websol.barchart.com/getHistory.json?apikey=YOUR_API_KEY&symbol=IBM&type=daily&startDate=20160608000000

https://marketdata.websol.barchart.com/getHistory.csv?apikey=YOUR_API_KEY&symbol=IBM&type=daily&startDate=20160608000000

Stock Market Data API Pricing

Our OnDemand service pricing is based on usage, meaning you only pay for the amount of data you use. We can scale up our services in a matter of seconds and offer versatile packages tailored to your specific needs that range from small to enterprise solutions.

Whether you are looking for a fully custom or off-the-shelf solution, our flexible APIs can be tailored to include only the data you need. With direct connectivity to the exchanges, our OnDemand solution is completely platform-independent so you can receive the data you need in any operating system or programming language. Barchart OnDemand delivers a truly reliable and scalable cloud-based solution. To learn more about our stock market APIs contact us at solutions@barchart.com.

VIEW ALL POSTS