Built into AlgoGP (data) Pro

How to get a Finnhub API key

Finnhub shows your API key on the dashboard right after registration.

About 3 minutes 2 steps Checked October 2026

Before you start

  • An email address

Create your Finnhub API key

  1. 1

    Register

    Sign up at finnhub.io.

  2. 2

    Copy the key

    The API key is on your dashboard (finnhub.io/dashboard). Save it as FINNHUB_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"
A JSON quote with c (current price) means the key works.

Add the key to your AlgoGP project

  1. 1

    Open your project’s APIs & keys tab

    Open the strategy project and select APIs & keys in the workspace tabs.

  2. 2

    Paste each value

    Paste the values into FINNHUB_API_KEY and click Save. Values are encrypted at rest, never shown again and never written into code or exports.

  3. 3

    Run locally with the same names

    Exported projects read the same names from .env (copy .env.example). Keep .env out of version control.

FINNHUB_API_KEY=paste-your-value-here
.env for local runs

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.

How the Finnhub API works

AlgoGP is not affiliated with Finnhub. Menus get renamed from time to time; if a label differs, the official documentation has the current path.