finnhub-python
Finnhub API
What it is and what it does
Finnhub-python wraps the Finnhub Stock API into a Python client that lets you query financial market data programmatically. It covers stocks, forex, crypto, ETFs, mutual funds, bonds, and economic indicators—returning raw JSON responses that you can process directly or convert to pandas DataFrames. The library is thin and straightforward: you instantiate a Client with an API key, then call methods like stock_candles(), company_profile(), or quote() to fetch data.
The package depends only on requests for HTTP calls, making it lightweight to install. It's actively maintained and popular, suggesting it's a stable choice for developers building financial data pipelines, analysis tools, or trading applications that need real-time or historical market information.
Use it for:
- Fetch real-time stock quotes and historical candle data for charting or analysis
- Build a financial dashboard that displays company fundamentals, earnings, and news
- Analyze technical indicators and price patterns for trading signals or backtesting
- Retrieve company profile, executive, and peer data for due diligence or research
- Monitor crypto and forex rates and candle data for multi-asset portfolio tracking
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Finnhub-python is a client library for the Finnhub Stock API, providing access to financial market data including stock quotes, company fundamentals, earnings, technical indicators, and news.
Yes. The package is actively maintained, has low install friction, carries a permissive license, and offers a broad API surface for financial data access. It's stable enough for production use. Verify that you have a valid API key and understand rate limits for your use case.
Install
finnhub-python on PyPI
pip
pip install finnhub-pythonuv
uv add finnhub-pythonpoetry
poetry add finnhub-pythonInstalling finnhub-python
Before you install
Installation is straightforward with low friction—the package is a pure Python wheel with only requests as a runtime dependency. Active maintenance status indicates ongoing support.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects with minimal restrictions; you must include a copy of the license and note any modifications.
Quickstart
pip install finnhub-python
import finnhub
finnhub_client = finnhub.Client(api_key="YOUR_API_KEY")
res = finnhub_client.quote('AAPL')
print(res)
Requires a valid Finnhub API key
Verify before relying
- Whether the package requires a Finnhub API key and what rate limits apply to free vs. paid tiers
- Minimum Python version requirement (not specified in metadata)
- Whether all API endpoints documented in the excerpt are fully implemented and current
Package facts
| License | Apache-2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | actively maintained — 51 days since the last release |
| First released | |
| Downloads | 469,819/month — #6,485 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: finnhub_python-2.4.29-py3-none-any.whl
Keywords: finnhub, Finnhub API, api
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
finvizfinanceScrapes financial data from FinViz website,…
permissive · top 15,000 on PyPI
yahooqueryRetrieves financial data from Yahoo Finance…
permissive · top 15,000 on PyPI
tradingeconomicsProvides Python access to over 300,000 economic…
permissive · top 15,000 on PyPI
alpha-vantageFetches real-time and historical stock,…
permissive · top 15,000 on PyPI
openbb-tradingeconomicsIntegrates Trading Economics data into the…
agpl · top 15,000 on PyPI
fintsA pure-Python implementation of the FinTS 3.0…
copyleft · top 15,000 on PyPI
sec-apiA Python client for the SEC-API.io service that…
permissive · top 15,000 on PyPI
polygon-api-clientProvides REST and WebSocket client libraries…
permissive · top 15,000 on PyPI
metatrader5Connects Python to MetaTrader 5 Terminal to…
permissive · top 15,000 on PyPI
massiveOfficial Python client for Massive's REST and…
permissive · top 15,000 on PyPI