Finnhub Python client
Official Python client for the Finnhub API, with stock, forex, crypto, company, economic and alternative data behind one API key.
One pip install and an API key give your scripts quotes, candles, fundamentals, calendars and news sentiment in a few lines of Python.
Who it is for
Python users who want a single client for prices, company data and calendars in alerts, dashboards and strategy research.
Strengths
- Install with pip install finnhub-python and create a client with finnhub.Client(api_key=...).
- Examples cover stock candles and quotes, company profiles and financials, forex and crypto candles, and ETF holdings.
- Includes economic, IPO and earnings-style calendars, plus market status and holidays.
- Also covers insider transactions, SEC filings and alternative data such as news and social sentiment.
Good to know
- Every request needs an API key from Finnhub.
- Rate limits and which endpoints are free are not stated in the pages we read; check the official documentation before building on it.
- The Apache licence covers the client library, not the data, which follows Finnhub's own terms.
- It is a data client, not a broker: no order execution.
Custom bots are coming soon
We are preparing a service to build bots on tools like this one. Follow our Telegram channel to know when it opens.
Real-life uses
Earnings and IPO calendar alerts
Pull the upcoming earnings and IPO calendar once a day with a short Python script and message yourself only the names on your watchlist, so you know when to pause or review a strategy. Illustrative only, never a promise of returns.
Compare it with others
Quick answers
How much does Finnhub Python client cost?
The client is free (Apache-2.0). Data plans and rate limits are not stated in the pages we read; check the official website. An API key is required. Prices change, so check the official website before you decide.
Is Finnhub Python client open source?
Yes. License: Apache-2.0.
Who is Finnhub Python client for?
Python users who want a single client for prices, company data and calendars in alerts, dashboards and strategy research.
What is Finnhub Python client written in?
Finnhub Python client is written in Python.
What should I know before using Finnhub Python client?
Every request needs an API key from Finnhub. Rate limits and which endpoints are free are not stated in the pages we read; check the official documentation before building on it. The Apache licence covers the client library, not the data, which follows Finnhub's own terms. It is a data client, not a broker: no order execution.
Want a bot like this when custom bots open? Get notified · All comparisons · Guides
Sources
Every fact on this page comes from these sources, checked on 2026-11-16. If something has changed, the source wins.
- https://raw.githubusercontent.com/Finnhub-Stock-API/finnhub-python/master/README.md: pip install, API key client, example endpoints, Apache licence, link to docs
- https://api.github.com/repos/Finnhub-Stock-API/finnhub-python: Apache-2.0, about 1,100 stars, last push 2026-11-05, not archived, Python
- https://finnhub.io/docs/api: realtime stock, forex and crypto data, fundamentals, economic and alternative data
Alternatives in Broker & exchange APIs
Alpaca (alpaca-py)
Alpaca's official Python SDK to trade stocks, crypto and options via API and download market data.
python-binance
Popular unofficial Python wrapper for the Binance API, with spot, futures and WebSocket support.
Binance Python connectors
Binance's official, auto-generated Python SDKs for its APIs, split into separate packages for spot, USDⓈ-M and COIN-M futures, options, margin and more.
CCXT
Library that unifies the APIs of 100+ crypto exchanges behind a single interface, available in seven languages.