Built into AlgoGP (data) Pro
Market dataAlt dataStocksForexCryptoFundamentalsNews API key

Finnhub API guide

Finnhub is popular with developers because one key covers prices, fundamentals and news, and the free tier is enough to prototype. It is a good fit for strategies that mix price signals with earnings, estimates or sentiment.

Last verified

Quick answer

Finnhub combines stock, FX and crypto prices with fundamentals, estimates, earnings, news, transcripts and alternative data behind one API key, sent as token= or the X-Finnhub-Token header. All plans share a hard ceiling of 30 calls per second; historical candles and several datasets require a paid plan, so check your plan’s access before relying on them.

Finnhub API at a glance

Pricing
Free tier; paid from $49.99/mo
Availability
Worldwide
Paper trading
Not applicable (data only)
Integration type
REST + API key
In AlgoGP
Built in: data adapter (Pro)
REST base
https://finnhub.io/api/v1
Auth
token= parameter or X-Finnhub-Token header
Ceiling
30 calls/second on every plan; free 60/minute
Candles
/stock/candle, /forex/candle, /crypto/candle
WebSocket
Trades, one connection per key

Candles and symbols

Candle endpoints take resolution (1, 5, 15, 30, 60, D, W, M) and Unix from/to, and return parallel arrays t, o, h, l, c, v with s: "ok". FX and crypto symbols include the venue: OANDA:EUR_USD, BINANCE:BTCUSDT.

Use Finnhub in AlgoGP

Finnhub is read by the generated data_sources.py. Turn it on from config.json under filters.sentiment. In-app backtests replay news and sentiment from dated, keyless archives, so a key, if any, is only used when the exported live.py runs; store it in the project’s Keys & secrets or a local .env.

KeyWhat it is
FINNHUB_API_KEYFinnhub API key from your dashboard.
Names the generated code reads. Add values under Keys & secrets or in a local .env.

New to Finnhub? Follow the step-by-step Finnhub API key guide.

Finnhub API: frequently asked questions

Is Finnhub free?

Yes, there is a free tier (60 calls/minute) for personal use; historical candles and premium datasets need a paid plan.

Can I use Finnhub data commercially?

Personal plans are for individual use; commercial use and redistribution require an enterprise plan.

What is the Finnhub rate limit?

30 calls per second on all plans, plus per-minute limits by plan.

Turn Finnhub data into a tested strategy

Backtest an idea in the browser, then export Python whose live loop reads candles straight from Finnhub with your own key.

  • Generated Finnhub candle fetcher, closed bars only
  • An AI copilot that writes and revises the rules
  • Pair it with Alpaca, Binance, OANDA or another broker

Free plan, no card required. Finnhub is included with Pro.

Finnhub alternatives

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