Finnhub Skill
by @samlin425
Read-only market data skill for Finnhub. Use when the user wants stock, forex, crypto, company profile, candles/K-lines, news, earnings, or economic calendar...
clawhub install finnhub-skill📖 About This Skill
name: finnhub-skill description: Read-only market data skill for Finnhub. Use when the user wants stock, forex, crypto, company profile, candles/K-lines, news, earnings, or economic calendar data from Finnhub; also use when the user mentions Finnhub API, Finnhub token, or wants to package Finnhub market data access into an OpenClaw workflow.
Finnhub Skill
Use Finnhub as a read-only market data source.
Core Rules
1. Treat this skill as data retrieval only.
2. Never place trades or modify accounts through this skill.
3. Require a valid FINNHUB_API_KEY before making live requests.
4. If the API key is missing, explain how to configure it instead of guessing.
5. Prefer concise outputs: summary first, raw fields second.
Supported Use Cases
Configuration
Expect the user to provide:
export FINNHUB_API_KEY=your_api_key
Optional base URL override is supported only for the official Finnhub domain:
export FINNHUB_BASE_URL=https://finnhub.io/api/v1
Default base URL:
https://finnhub.io/api/v1
Security rule:
https://finnhub.io/...Execution Layer
Use the bundled script:
python3 scripts/finnhub.py [flags]
Supported commands:
quote --symbol AAPL [--raw]candles --symbol AAPL --resolution D --from-ts 1711584000 --to-ts 1712188800 [--raw]profile --symbol AAPL [--raw]company-news --symbol AAPL --date-from 2026-03-01 --date-to 2026-03-30 [--raw]market-news --category general [--raw]earnings --date-from 2026-03-30 --date-to 2026-04-06 [--symbol AAPL] [--raw]economic --date-from 2026-03-30 --date-to 2026-04-06 [--raw]Default output is human-readable. Use --raw when the user explicitly wants JSON.
Recommended Request Pattern
Use the bundled Python script for live calls instead of rebuilding requests from scratch.
When constructing requests:
Output Style
Quote
Return:Candles
Summarize:Only dump the full array when the user explicitly asks.
Company Profile
Return:News
Return:Prefer 3-5 most relevant items unless the user asks for more.
Common Tasks
1. Real-time quote
Use Finnhub quote endpoint for stocks or supported symbols. If the user gives a bare ticker likeAAPL, use it directly.
If the user gives crypto/forex, confirm Finnhub symbol format if needed.2. Candles / K-lines
Ask for or infer:1, 5, 15, 30, 60, D, W, M)If the user asks loosely (e.g. “last week”), convert it into a concrete range.
3. Company profile
Use the company profile endpoint when the user asks “what is this company”, “profile”, “market cap”, “which exchange”, etc.4. News
Use company or market news endpoints depending on the request:5. Earnings / calendar
Use earnings calendar for upcoming results and earnings history if the user asks what already happened.6. Daily stock report
When the user asks for a daily report like:Build the report in this order: 1. quote / price summary first 2. most important 3-5 news items 3. market narrative and trader interpretation 4. final rating
For the report format, read:
references/daily-report-template.mdIf candle/volume endpoints are unavailable due to Finnhub plan limits:
Error Handling
If Finnhub returns auth or quota errors:
If symbol format is ambiguous:
Reference File
For endpoint patterns and parameter hints, read:
references/api.md⚙️ Configuration
Expect the user to provide:
export FINNHUB_API_KEY=your_api_key
Optional base URL override is supported only for the official Finnhub domain:
export FINNHUB_BASE_URL=https://finnhub.io/api/v1
Default base URL:
https://finnhub.io/api/v1
Security rule:
https://finnhub.io/...