Quick answer
Stooq is a Polish financial portal that serves free daily history for stocks, indices, currencies, bonds and commodities worldwide as CSV, with no key. Download one symbol with https://stooq.com/q/d/l/?s=aapl.us&i=d or bulk files from its database page; pandas-datareader also reads it. It is unofficial and can rate-limit, so cache downloads.
Stooq API at a glance
- Pricing
- Free, no key
- Availability
- Worldwide
- Paper trading
- Not applicable (data only)
- Integration type
- Public, no key
- In AlgoGP
- Design and backtest in AlgoGP, connect the exported code
- Key
- None
- Tickers
- Suffixes like
aapl.us,vod.uk,^spx,eurusd - Format
- CSV (Date, Open, High, Low, Close, Volume)
Download and backtest
curl -s "https://stooq.com/q/d/l/?s=aapl.us&i=d" | \
awk -F, 'NR==1{print "timestamp,open,high,low,close,volume";next}{print $1","$2","$3","$4","$5","$6}' > bars.csv
python backtest.py --csv bars.csvBuild a Stooq strategy with AlgoGP
AlgoGP does not connect to Stooq natively yet. Stooq 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 Stooq
Implement the four adapter methods (
account,positions,submit_market_orderand a candle fetcher) with Stooq’s SDK, or keep a built-in platform for paper trading and add Stooq when you go live.
Built-in data sources for the same markets: Alpaca, Yahoo Finance, Alpha Vantage, OANDA.
Stooq API: frequently asked questions
Is Stooq data adjusted?
Daily data is split- and dividend-adjusted by default; check before mixing with unadjusted sources.
Design and backtest your Stooq strategy first
AlgoGP turns an idea into Python and tests it on years of history before you connect it to Stooq. 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 Stooq
Free plan, no card required.
Stooq alternatives
- Yahoo Finance API Built into AlgoGP (data)Free, keyless daily and intraday history for stocks, ETFs, indices, futures and forex via the chart endpoint.
- EODHD API Built into AlgoGP (data)EOD Historical Data: global end-of-day and intraday prices for 150k+ tickers, fundamentals, FX and crypto at low cost.
- Alpha Vantage API Built into AlgoGP (data)Free API key for stock, forex and crypto time series plus technical indicators and fundamentals.
- Tiingo API Built into AlgoGP (data)Clean, curated end-of-day stock prices back decades, plus crypto and IEX intraday, at hobbyist prices.
Independent guide. AlgoGP is not affiliated with Stooq. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.