Quick answer
Barchart OnDemand is a cross-asset market data API covering stocks, indices, ETFs, mutual funds, futures, FX and crypto, with tick, minute and daily history in JSON, XML or CSV over REST, SOAP or WebSocket. Pricing is custom, and real-time exchange fees can exceed the API platform fee.
Barchart OnDemand API at a glance
- Pricing
- Custom; exchange fees extra
- Availability
- Worldwide
- Paper trading
- Not applicable (data only)
- Integration type
- REST + API key
- In AlgoGP
- Design and backtest in AlgoGP, connect the exported code
- Endpoints
getQuote,getHistory,getFuturesOptions, …- Formats
- JSON, XML, CSV over REST/SOAP; WebSocket streaming
- History
- Tick, minute and daily
- Pricing
- Custom; exchange surcharges extra
Using getHistory
getHistory.json?apikey=…&symbol=ESZ25&type=daily&startDate=20240101 returns OHLCV rows; type can be ticks, minutes, nearbyMinutes, daily and more. Futures use Barchart root + month code + year.
Build a Barchart OnDemand strategy with AlgoGP
AlgoGP does not connect to Barchart OnDemand natively yet. Barchart OnDemand uses plain HTTPS with an API key, so it is a good candidate for a native adapter; it is not built in yet.
- 1
Design and backtest in AlgoGP
Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.
- 2
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in Barchart OnDemand
Implement the four adapter methods (
account,positions,submit_market_orderand a candle fetcher) with Barchart OnDemand’s SDK, or keep a built-in platform for paper trading and add Barchart OnDemand when you go live.
Built-in data sources for the same markets: Alpaca, Binance, Coinbase Exchange, Yahoo Finance.
Barchart OnDemand API: frequently asked questions
Is the Barchart API free?
Barchart offers trial keys; production access is priced per use case, with exchange fees on real-time data.
Design and backtest your Barchart OnDemand strategy first
AlgoGP turns an idea into Python and tests it on years of history before you connect it to Barchart OnDemand. The exported code keeps the broker behind four small adapter methods.
- AI copilot writes and revises the rules
- Backtests with realistic costs
- Exported Python ready to wire to Barchart OnDemand
Free plan, no card required.
Barchart OnDemand alternatives
- Databento API GuideInstitutional-quality tick, depth (L2/L3) and OHLCV data for US equities, futures and options, billed by usage.
- Massive (Polygon.io) API Built into AlgoGP (data)Institutional-grade US stock, options, forex and crypto aggregates; Polygon.io renamed to Massive in 2025.
- Twelve Data API Built into AlgoGP (data)One API for global stocks, forex, crypto and ETFs with 1-minute to monthly bars and a generous free plan.
- CQG API GuideInstitutional futures and derivatives connectivity: WebAPI over secure WebSocket with Protobuf, plus FIX.
Independent guide. AlgoGP is not affiliated with Barchart OnDemand. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.