Before you start
- An email address
Create your Finnhub API key
- 1
Register
Sign up at finnhub.io.
- 2
Copy the key
The API key is on your dashboard (
finnhub.io/dashboard). Save it asFINNHUB_API_KEY.
Test the key
Before wiring the key into a strategy, make one request by hand. It separates “the key is wrong” from “my code is wrong”.
curl -s -H "X-Finnhub-Token: $FINNHUB_API_KEY" "https://finnhub.io/api/v1/quote?symbol=AAPL"c (current price) means the key works.Add the key to your AlgoGP project
- 1
Open your project’s APIs & keys tab
Open the strategy project and select APIs & keys in the workspace tabs.
- 2
Paste each value
Paste the values into
FINNHUB_API_KEYand click Save. Values are encrypted at rest, never shown again and never written into code or exports. - 3
Run locally with the same names
Exported projects read the same names from
.env(copy.env.example). Keep.envout of version control.
FINNHUB_API_KEY=paste-your-value-hereTurn 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.
AlgoGP is not affiliated with Finnhub. Menus get renamed from time to time; if a label differs, the official documentation has the current path.