How to Use Finnhub company news in opencode
Fetch headlines, summaries, publication times, sources, and article links for a North American company over a date range. Use it to build a company news timeline or prepare a briefing from returned coverage.
Prompts to try with Finnhub company news in opencode
Copy an example into opencode, or ask in your own words.
Use Finnhub company news to fetch Apple (AAPL) coverage from the past seven days and add a local reading view to this project with headlines, summaries, publishers, and article links.
Use Finnhub company news for Microsoft (MSFT) from November 9 through November 13, 2026, and create a chronological news view in this project using the returned publication times.
Use Finnhub company news to retrieve Nvidia (NVDA) articles from the past three days and adapt this project's importer to avoid inserting the same article ID twice.
Use Finnhub company news for Amazon (AMZN) from the past week and add a publisher filter to this project's local news reader using the returned sources.
Use Finnhub company news to retrieve Ford (F) and General Motors (GM) articles from the past seven days and build a local comparison view with separate company columns and original article links.
How to set up Finnhub company news in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Finnhub company news
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "finnhub-gateway/news/company", "input": { "to": "<to>", "from": "<from>", "symbol": "<symbol>" } }'
Then paste one of the prompts above: opencode finds Finnhub company news on Spiral, shows the price and runs it.
Finnhub company news providers and prices
Spiral runs Finnhub company news through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 100 | 20 | Most articles to return, newest first. Default 20, at most 100. Applied to Finnhub's full answer. |
Every API field of Finnhub · Company news is on its tool page: open its card above.
What can you do with Finnhub company news in opencode?
Build a local company news reader with Finnhub headlines, summaries, sources, and article links. A coding agent can adapt the project's display and storage code to publication timestamps and article IDs.
Morning company briefing
Turn returned Apple coverage into a personal morning reading list with headlines, short summaries, publication times, and links.
Earnings coverage timeline
Arrange Microsoft articles from a chosen reporting week by publication time to review how coverage developed before and after the announcement.
Product announcement research
Find returned Nvidia headlines and summaries about product announcements, then collect the original article links for further reading.
Company comparison
Compare the subjects appearing in returned Ford and General Motors coverage over the same dates, with separate evidence for each company.
Publisher comparison
Group returned Amazon articles by source to compare how different publishers describe the same reported development.
New article detection
Compare article IDs across repeated Tesla checks and prepare a personal reading list containing only articles not seen previously.
News reader development
Use returned company news to build a local reader that displays headlines, summaries, sources, publication times, and links together.
More on Finnhub company news and opencode
Overview
Finnhub company news in other agents
Questions about Finnhub company news in opencode
Can opencode use Finnhub company news?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Finnhub company news like any built-in tool.
How much does Finnhub company news cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Finnhub company news in opencode?
No. Spiral runs Finnhub company news on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Finnhub company news in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Finnhub company news runs?
Finnhub company news runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does Finnhub company news cover companies worldwide?
No. Finnhub explicitly limits this endpoint to North American companies, even though its broader catalog includes global financial data.
Do I get full articles or article summaries?
The documented response contains headlines, summaries, sources, and article links. It does not document a full article body, so use the returned link when you need the original report.
How much history does Finnhub have, and how fresh is it?
Finnhub advertises 20 years of company news and real-time updates for its enterprise offering. That describes Finnhub's enterprise dataset, not a confirmed history allowance or delivery delay for this endpoint through Spiral.
Why can a company's news include stories mentioning other businesses?
Finnhub's response includes related stocks and companies mentioned in each article. Review the headline and summary to distinguish a report focused on your company from one that mentions it alongside other businesses.
Is Finnhub's news coverage guaranteed to be complete and accurate?
No. Finnhub's terms explicitly disclaim guarantees of accuracy and completeness, so returned coverage cannot establish that every relevant report has been captured.
Start using Finnhub company news in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


