finnhub
Access Finnhub API for real-time stock quotes, company news, market data, financial statements, and trading signals. Use when you need current stock prices, company news, earnings data, or market analysis.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/matthewxfz3/finnhubFinnhub API
Access real-time and historical stock market data, company news, financial statements, and market indicators via the Finnhub API.
Quick Start
Get your API key from finnhub.io (free tier available).
Configure in OpenClaw:
{
skills: {
entries: {
finnhub: {
enabled: true,
apiKey: "your-finnhub-api-key",
env: {
FINNHUB_API_KEY: "your-finnhub-api-key",
},
},
},
},
}
Or add to ~/.openclaw/.env:
FINNHUB_API_KEY=your-api-key-here
API Endpoints
Base URL: https://finnhub.io/api/v1
All requests require ?token=${FINNHUB_API_KEY} parameter.
Stock Quotes (Real-time)
Get current stock price:
curl "https://finnhub.io/api/v1/quote?symbol=AAPL&token=${FINNHUB_API_KEY}"
Returns: c (current price), h (high), l (low), o (open), pc (previous close), t (timestamp)
Company News
Get latest company news:
# News for a symbol
curl "https://finnhub.io/api/v1/company-news?symbol=AAPL&from=2025-01-01&to=2025-02-01&token=${FINNHUB_API_KEY}"
# General market news
curl "https://finnhub.io/api/v1/news?category=general&token=${FINNHUB_API_KEY}"
Company Profile
Get company information:
curl "https://finnhub.io/api/v1/stock/profile2?symbol=AAPL&token=${FINNHUB_API_KEY}"
Financial Statements
Get company financials:
# Income statement
curl "https://finnhub.io/api/v1/stock/financials-reported?symbol=AAPL&token=${FINNHUB_API_KEY}"
# Balance sheet
curl "https://finnhub.io/api/v1/stock/financials-reported?symbol=AAPL&statement=bs&token=${FINNHUB_API_KEY}"
# Cash flow
curl "https://finnhub.io/api/v1/stock/financials-reported?symbol=AAPL&statement=cf&token=${FINNHUB_API_KEY}"
# Search in SEC filings (10-K, 10-Q, etc.)
# Note: This endpoint may require premium tier or have a different path
curl "https://finnhub.io/api/v1/stock/search-in-filing?symbol=AAPL&query=revenue&token=${FINNHUB_API_KEY}"
Market Data
Get market indicators:
# Stock candles (OHLCV)
curl "https://finnhub.io/api/v1/stock/candle?symbol=AAPL&resolution=D&from=1609459200&to=1640995200&token=${FINNHUB_API_KEY}"
# Stock symbols (search)
curl "https://finnhub.io/api/v1/search?q=apple&token=${FINNHUB_API_KEY}"
# Market status
curl "https://finnhub.io/api/v1/stock/market-status?exchange=US&token=${FINNHUB_API_KEY}"
Trading Signals
Get technical indicators and signals:
# Technical indicators (may require premium tier)
curl "https://finnhub.io/api/v1/indicator?symbol=AAPL&indicator=rsi&resolution=D&token=${FINNHUB_API_KEY}"
# Support/Resistance (may require premium tier)
curl "https://finnhub.io/api/v1/scan/support-resistance?symbol=AAPL&resolution=D&token=${FINNHUB_API_KEY}"
# Pattern recognition (may require premium tier)
curl "https://finnhub.io/api/v1/scan/pattern?symbol=AAPL&resolution=D&token=${FINNHUB_API_KEY}"
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-matthewxfz3-finnhub": {
"enabled": true,
"auto_update": true
}
}
}