Guide
Market dataStocksIndicesForexBondsFutures No key needed

Stooq API guide

Stooq is a handy keyless fallback when Yahoo Finance is rate-limiting or missing a market.

Last verified · Also known as Stooq data, stooq.com CSV

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.csv
Daily AAPL history, then the exported backtest on it.

Build 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. 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. 2

    Export the Python project

    Every project exports strategy.py, market_data.py, brokers.py and live.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format.

  3. 3

    Plug in Stooq

    Implement the four adapter methods (account, positions, submit_market_order and 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

Independent guide. AlgoGP is not affiliated with Stooq. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.

Build a strategy