Financial Data APIs

Barchart OnDemand features a diverse set of market data and information APIs. Pricing is based on the number of monthly queries and fields requested. We offer four packages: Small, Medium, Large, Enterprise. Explore our APIs below.

Tools

Event-Based API - Contact Us For Access

Barchart's Event-Based API provides developers REST API and/or Socket.IO endpoints for implementing market data and news based real-time alerts when their user-defined conditions occur.

WebSockets APIs

Stream real-time market data direct to web browsers and mobile apps (Android, iOS, Chrome, IE, Firefox, etc.). Available in Java, JavaScript and Swift. Uses Socket.IO.

Clients:   Java Client  /   JavaScript Client  /   PHP Client  /   Python Client

Price Data

The getQuote API is used to request price data, either real-time, delayed or end-of-day, by symbol on stocks, indexes, mutual funds, ETFs, futures, foreign exchange, or cryptocurrencies. Historical data is available as tick, minute bars or end-of-day data.
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.
getData
Custom Data. The getData API is a custom query to request any combination of market data fields we make available. Contact us to design a custom getData API.
The getClosePrice API provides the close price for given instruments for the given date.
The getQuoteEod API is used to request end-of-day price data, by combined exchange and symbol, on stocks, indexes, mutual funds, ETFs, futures, foreign exchange, or cryptocurrencies. Historical data is available as tick, minute bars or end-of-day data.
Receive all real-time or delayed equities market data by exchange through a single onDemand query with the getEquitiesByExchangeAPI from Barchart OnDemand.
Receive all real-time or delayed, or end-of-day futures data by exchange through a single onDemand query with the get FuturesByExchange API from Barchart OnDemand.
The getFuturesOptionsExpiration API provides last trade dates for options on futures contracts.
The getFuturesSpreads API returns all active futures spread for the requested commodity.
The getSpecialOptionsClassification API provides the classification for weekly and special options by commodity.
The getEquityOptions API from Barchart OnDemand provides end-of-day options data such as strike price, closing price, expiration date, volume and volatility, etc.
The getEquityOptionsIntraday API provides intraday options data such as strike price, last price, bid, ask, size, expiration date, volume and volatility, etc.
The getEquityOptionsHistory API from Barchart OnDemand allows users to get historical prices for equity options.
The getOptionsScreener API allows a user to screen for specific equity and ETF option strikes using a variety of filters and parameters that highlight where unusual options activity may be occuring. Users can build powerful market scanners to implement professional trading strategies.
Ameribor® is an interbank interest rate reflecting the borrowing rates based on actual transactions of the members of the American Financial Exchange (AFX). Ameribor is a transaction-based short-term interest rate based on loans executed between U.S. depositories on the American Financial Exchange Electronic Trading System. The rate is calculated using the 30 trading day rolling average of the weighted average daily volume in the AFX overnight unsecured market. The rate is denoted as a 360-day annualized percentage rate up to the fifth decimal.

Cryptocurrency Data

The getCrypto API provides price data by symbol for spot market cryptocurrencies, including Bitcoin, Ethereum, Ripple, Litecoin and more. Bitcoin futures are available through getQuote. In addition to last price, other fields such as open, high, low, close, price change, percent change are available.
The getCryptoHistory API provides historical price data for spot cryptocurrencies, including Bitcoin, Ethereum, Ripple, Litecoin and more. Bitcoin futures historical data is available through the getHistory API.

Profiles and Financial Data

The getProfile API is used to request information about a publicly traded company, such as sector, industry, company description, CEO, recent earnings, P/E ratio, and address, based on symbol.
The getFinancialHighlights API provides key financial highlights, ratios and statistics for equities based on symbol. Fields include market capitalization, revenue, net income, revenue growth and earnings per share.
The getFinancialRatios API provides key financial ratios for equities based on symbol. The fields include earnings per share, return on equity and price to earnings.
The getIncomeStatements API from Barchart OnDemand provides access to public company financial income statements based on symbol.
The getBalanceSheets API from Barchart OnDemand provides access to public company financial balance sheet data based on symbol.
Barchart OnDemand's getCompetitors API provides a list of related stock symbols (competitors) for an underlying stock input.
The getInsiders API provides insider transaction records for publically traded companies based on symbol. Data reported includes the date of the transaction, transaction type, number of shares and the transaction value.
Barchart OnDemand's getRatings API provides analysts ratings on stocks (strong buy, moderate buy, hold, moderate sell or strong sell) based on symbol.
The getIndexMembers API from Barchart OnDemand returns the constituents comprising an index.
Barchart OnDemand's getCashFlow API provides information about cash flow, income and cash equivalents of publicly traded companies.

Splits, Dividends, and Earnings

The getCorporateActions API from Barchart OnDemand provides corporate actions data on equities including splits, dividends and earnings, based on a symbol.
The getEarningsEstimates API from Barchart OnDemand provides per share earnings estimates on public companies for quarterly and annual periods based on symbol.
The getDividendData API from Barchart OnDemand provides the most recent dividend data for requested instruments.
The getDividendStocks API returns dividend info for all US instruments.

Leaderboards and Lists

Barchart OnDemand's getLeaders API provides leaderboard lists for equities, futures, forex, mutual funds and ETFs, including most active, gainers, losers, what's hot and what's not hot.
The getHighsLows API from Barchart OnDemand provides lists for new 52-week highs or 52-week lows based on exchange and asset type.
The getSectors API from Barchart OnDemand provides returns using weighted alpha on sectors covering multiple periods, including 1-day, 1-month, 3-month, 6-month, 9-month, 12-month and year-to-date.

Charts and Analytics

The getChart API from Barchart OnDemand is used to request a custom chart image with variables such as chart type, size, period and technical indicators, based on a symbol.
Barchart OnDemand's getTechnicals API provides technical data and statistics for equities, indices, futures, currencies, cryptocurrencies and mutual funds based on symbol. Fields include moving averages, percent changes over different time periods and stochastics.
The getScreener API provides the ability to screen for stocks, index, mutual fund, ETF or futures instruments that meet a custom set of criteria.
The getSignal API provides the Barchart Technical Opinion / Signal (buy, sell or hold) based on a variety of short, medium and long-term technical indicators based on a symbol.
The getMomentum API provides a daily summary on the number of advancing, declining and unchanged stocks, as well as the percentage of stocks above moving averages of different lengths.

ETFs

Barchart OnDemand's getETFDetails API provides ETF profile information including descriptions, fund family, underlying index, inception date, alpha, beta, shares outstanding, management fee, assets under management, top 10 holdings and more.
The getETFConstituents API from Barchart OnDemand provides the complete list of constituents for a given ETF.

News and Filings

Barchart OnDemand's getNews API returns news headlines, articles and related photos based upon news sources, category, sub-category and/or keyword.
The getNewsSources API from Barchart OnDemand provides access to public news sources and your authorization status per source.
Barchart OnDemand's getNewsCategories API provides access to news source category and sub-category data.
Barchart OnDemand's getSECFilings API provides access to quarterly, annual and other required regulatory/SEC filings for U.S. publicly traded companies based on symbol.

Metadata

The getInstrumentDefinition API from Barchart OnDemand is available to request metadata on financial instruments by symbol, exchange, or exchange MIC. Metadata includes instrument names, exchange codes, tick increments, base codes, expiration dates and more.
Barchart OnDemand's getFuturesSpecifications API provides contract information such as trading hours, contract size and tick size for futures contracts.
The getFuturesExpiration API from Barchart OnDemand provides first notice and last trade dates for futures contracts.
The getFuturesOptionsExpiration API provides last trade dates for options on futures contracts.
The getSpecialOptionsClassifications API from Barchart OnDemand provides the classification for weekly and special options by commodity.
The getForexForwardCurves API from Barchart OnDemand provides the bid, ask, and mid price data for all available forward curves (forward rates) for a given forex symbol.

Other Data

Barchart OnDemand's getWeather API provides current conditions and forecasts based on zip code. As well as weather maps based on type or region.
The getGrainBids API provides cashbid data for 30 closest locations in relation to the requested zip code. Learn more about Barchart's proprietary commodity data and grain cmdtyIndexes.
Barchart OnDemand's getUSDAGrainPrices API provides daily cash grain bids and prices for grain buying locations throughout the United States covering corn, wheat, oats and soybeans.
The getCmdtyStatsId API is used identify instrument identifiers that can be passed to getCmdtyStats in order to request data on the applicable series. Users can search for data series based on search parameters covering content, source, area, frequency, and more.
The getCmdtyStats API is used to request information on various fundamentals, commodity statistics, and economic data. Users can request information by data series with historical information available through to inception for most series. cmdtyStats™ is the premier source of aggregated commodity statistics – all made available in one easy to use API.
The getGrainInstruments API is used to request symbol and metadata information regarding physical grain instruments across Barchart's cash bids and grain indexes. Users can request information based on crop type / root symbol, geo-location, or areas that are codified by FIPS standards. Returned instruments and their corresponding symbols can be passed to getQuote or getHistory to retrieve the associated price data - as requested by the end user. Find our more about our commodity data offerings here.
The getCRBIndexes API provides historical price data for our CRB BLS Spot Commodity Indexes. The Spot Market Price Index measures price movements of 22 cash commodities whose markets are highly sensitive to changes in economic conditions.