Subcription API Frequently Asked Questions (FAQ)
Subscription API - getFuturesByExchange
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.
Subscription API - getEquitiesByExchange
Receive all real-time or delayed equities market data by exchange through a single onDemand query with the getEquitiesByExchangeAPI from Barchart OnDemand.
Subscription API - getFuturesOptions
The getFuturesOptions API provides intraday or end-of-day options data such as strike price, closing price, expiration date, volume, volatility etc on futures contracts.
Subscription API - getEquityOptions
The getEquityOptions API from Barchart OnDemand provides intraday or end-of-day options data such as strike price, closing price, expiration date, volume and volatility, etc.
The new OCC option symbol consists of 4 parts:
- the root symbol of the underlying stock or ETF, padded with spaces to 6 characters
- the expiration date, 6 digits in the format yymmdd
- option type, either P or C, for put or call
- strike price, as the price x 1000, front padded with 0s to 8 digits
Subscription API - getHistory
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.
Records are limited to 1000 unless including maxRecords > 1000 parameter
If using the interval=parameter, data returned will not include the settlement/close price at the end of the market session.
Definition of Nearby and Continuous Contracts:
For Daily Nearest / Weekly Nearest / Monthly Nearest / Quarterly Nearest / Yearly Nearest: Builds a historical chart using the nearest contract. The nearest contract is the closest unexpired contract for the underlying commodity, where every chart bar represents the front month at that point in history.
For Daily Continue / Weekly Continue / Monthly Continue / Quarterly Continue / Yearly Continue: Builds a historical chart using the same month specified for the original contract. For example, if the symbol is ZSX13 (Soybeans November 2013), the chart is built using all previous November contracts for Soybeans (ZSX13, ZSX12, ZSX11, ZSX10 etc).