[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Finnhub company news](https://spiral.ai/integrations/opencode/finnhub-company-news)

# 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.

|  |  |
| --- | --- |
| Model | Finnhub company news |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Finnhub company news in opencode

- 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

1. **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.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Finnhub company news**: One request; the result comes back by polling or a webhook.

```bash
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.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Finnhub company news tools and prices

- [Finnhub · Company news](https://spiral.ai/tools/alexandria/finnhub-gateway/news/company) (Alexandria): $0.00873 per call.

## Settings you can ask for

| 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. |

## 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Finnhub company news in other agents

- [Amp](https://spiral.ai/integrations/amp/finnhub-company-news)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/finnhub-company-news)
- [Claude](https://spiral.ai/integrations/claude-desktop/finnhub-company-news)
- [Claude Code](https://spiral.ai/integrations/claude-code/finnhub-company-news)
- [Cline](https://spiral.ai/integrations/cline/finnhub-company-news)
- [Codex](https://spiral.ai/integrations/codex/finnhub-company-news)
- [Cursor](https://spiral.ai/integrations/cursor/finnhub-company-news)
- [Devin](https://spiral.ai/integrations/devin/finnhub-company-news)
- [dots](https://spiral.ai/integrations/dots/finnhub-company-news)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/finnhub-company-news)
- [Gemini](https://spiral.ai/integrations/gemini/finnhub-company-news)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/finnhub-company-news)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/finnhub-company-news)
- [goose](https://spiral.ai/integrations/goose/finnhub-company-news)
- [Grok](https://spiral.ai/integrations/grok/finnhub-company-news)
- [Grok Build](https://spiral.ai/integrations/grok-build/finnhub-company-news)
- [Hermes](https://spiral.ai/integrations/hermes/finnhub-company-news)
- [Instinct](https://spiral.ai/integrations/instinct/finnhub-company-news)
- [Manus](https://spiral.ai/integrations/manus/finnhub-company-news)
- [Muse](https://spiral.ai/integrations/muse/finnhub-company-news)
- [Muse Code](https://spiral.ai/integrations/muse-code/finnhub-company-news)
- [n8n](https://spiral.ai/integrations/n8n/finnhub-company-news)
- [Notion](https://spiral.ai/integrations/notion/finnhub-company-news)
- [OpenClaw](https://spiral.ai/integrations/openclaw/finnhub-company-news)
- [Perplexity](https://spiral.ai/integrations/perplexity/finnhub-company-news)
- [Raycast](https://spiral.ai/integrations/raycast/finnhub-company-news)
- [VS Code](https://spiral.ai/integrations/vscode/finnhub-company-news)
- [Windsurf](https://spiral.ai/integrations/windsurf/finnhub-company-news)
- [Zapier](https://spiral.ai/integrations/zapier/finnhub-company-news)

## More opencode guides

- [Federal Reserve statistical data](https://spiral.ai/integrations/opencode/federal-reserve-statistical-data)
- [Finnhub company profile](https://spiral.ai/integrations/opencode/finnhub-company-profile)
- [Federal Reserve speech and testimony text](https://spiral.ai/integrations/opencode/federal-reserve-speech-and-testimony-text)
- [Finnhub stock symbol lookup](https://spiral.ai/integrations/opencode/finnhub-stock-symbol-lookup)
- [Federal Reserve speech and testimony search](https://spiral.ai/integrations/opencode/federal-reserve-speech-and-testimony-search)
- [Fireround company funding profile](https://spiral.ai/integrations/opencode/fireround-company-funding-profile)

## 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.

