Spiral gives your agent every tool with one account. Browse the tools →

opencode · Finance

How to Use Benzinga options activity in opencode

Benzinga options activity returns unusual option trades and sweeps, including contract details, sentiment, size, volume, and open interest. Use it to investigate reported options flow for a stock or compare activity across dates.

Prompts to try with Benzinga options activity in opencode

Copy an example into opencode, or ask in your own words.

Use Benzinga options activity to fetch AAPL alerts for the latest completed trading day and add a table to this project with contract, strike, expiration, size, and sentiment.

Benzinga options activityopencode
Try asking
  • Use Benzinga options activity to retrieve NVDA alerts for November 16 through November 19, 2026, and create a chart in this project showing alert counts by expiration.

  • Use Benzinga options activity to fetch TSLA alerts for the latest completed trading day and build a project view that brings repeated alerts for the same contract together.

  • Use Benzinga options activity to retrieve AMD alerts for the latest completed trading week and add separate sweep and trade tables with contract sizes and trade counts.

  • Use Benzinga options activity to fetch MSFT alerts for the latest completed trading day and add an export that keeps order size, volume, and open interest in distinct columns.

How to set up Benzinga options activity 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Benzinga options activity

    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": "benzinga/signals/options-activity",
        "input": {
          "page": 0
        }
      }'

Then paste one of the prompts above: opencode finds Benzinga options activity on Spiral, shows the price and runs it.

Benzinga options activity providers and prices

Spiral runs Benzinga options activity through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Benzinga · Unusual options activity
benzinga/signals/options-activity

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Pagea number0

Page offset.

Pagesizea number up to 1000

Records to return, limit 1000.

Parameters[updated]a number

Unix timestamp. Returns records updated at or after it.

Parameters[date sort]date

Date field to sort on. The only documented value is date; set it to read a period in date order.

Every API field of Benzinga · Unusual options activity is on its tool page: open its card above.

What can you do with Benzinga options activity in opencode?

Build a research dashboard that compares Benzinga options alerts by contract, expiration, size, and sentiment. A coding agent can turn retrieved records into tables and charts in your project, with individual alerts available for inspection.

Daily watchlist review

Summarize reported activity for AAPL, MSFT, and NVDA, separating calls from puts and showing the strikes and expirations receiving attention.

Repeated contract activity

Find repeated TSLA alerts for the same option contract during a trading session and arrange them by time for closer review.

Order size in context

Compare each reported NVDA order's contract count with volume and open interest. Keep order size and cumulative contract volume in separate columns.

Expiration concentration

Group AAPL activity by expiration date to show whether the reported contracts concentrate in the coming week or later months.

Sweep review

Separate sweeps from individual trades for AMD and compare trade counts, contract sizes, strikes, and Benzinga's sentiment labels.

Historical activity comparison

Compare MSFT options activity across two specified trading weeks, measuring changes in alert counts and expiration distribution.

Internal research dashboard

Build a view of reported options activity with contract details, order sizes, and sentiment. Let researchers inspect the underlying alerts behind each summary.

Questions about Benzinga options activity in opencode

Can opencode use Benzinga options activity?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Benzinga options activity like any built-in tool.

How much does Benzinga options activity cost in opencode?

$0.078566 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 Benzinga options activity in opencode?

No. Spiral runs Benzinga options activity on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Benzinga options activity in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Benzinga options activity runs?

Benzinga options activity runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Which markets does Benzinga cover?

Benzinga lists the Wilshire 5000 plus 1,000 additional U.S. equities for its unusual options dataset. That published coverage boundary does not establish worldwide options coverage.

How far back does the options activity history go?

Benzinga lists history from 2019. Its dataset page does not specify an exact starting day.

How fresh is the data?

Benzinga describes delivery as intraday and lists EST as the timezone. The dataset page does not provide a fixed refresh interval in seconds.

How many activity records can one request return?

Benzinga's official Python client documentation sets a limit of 1,000 results for options activity. Split longer research periods into smaller date windows and retrieve additional pages.

Can an alert reveal the trader's complete strategy?

Benzinga explicitly says the activity calendar cannot tell whether a transaction is one leg of a spread. A reported call or put therefore does not establish the trader's complete position.

Get started

Start using Benzinga options activity in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options