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

opencode · Finance

How to Use Forex Factory event details in opencode

Returns an indicator's source, measurement notes, release frequency, next release, and recent history. Use it to understand what a release measures before interpreting its numbers.

Prompts to try with Forex Factory event details in opencode

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

Use Forex Factory event details for the latest US Core PCE Price Index m/m release to add its source, measurement definition, and release frequency to this project's indicator reference.

Forex Factory event detailsopencode
Try asking
  • Use Forex Factory event details to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Forex Factory event details and tell me what changed since last week.

  • Check Forex Factory event details and summarize what you find in three bullet points.

  • Pull the newest data from Forex Factory event details and give me the result as a table.

How to set up Forex Factory event details 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 Forex Factory event details

    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": "forexfactory-com/economic-calendar/event_detail",
        "input": {
          "event_id": 1
        }
      }'

Then paste one of the prompts above: opencode finds Forex Factory event details on Spiral, shows the price and runs it.

Forex Factory event details providers and prices

Spiral runs Forex Factory event details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Forex Factory economic calendar · Event detail
forexfactory-com/economic-calendar/event_detail

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Event IDa number from 1

Per-release event id from list_events (e.g. 148235).

Every API field of Forex Factory economic calendar · Event detail is on its tool page: open its card above.

What can you do with Forex Factory event details in opencode?

Build a macro research view that puts Forex Factory release dates beside indicator definitions and historical forecast differences. A coding agent can turn the returned records into calendar views, reference tables, and charts in your project.

Prepare an inflation review

Find US CPI and Core PCE indicators, identify their scheduled releases, read their measurement notes, inspect earlier announcements, and chart actual readings against forecasts.

Build a payroll release briefing

Locate US Non-Farm Employment Change, check its release date, explain its definition, review previous announcements and revisions, and calculate historical forecast differences.

Research central bank decisions

Identify Bank of England and Bank of Canada rate indicators, check upcoming decision dates, read their specifications, inspect past decisions, and plot reported rates against forecasts.

Compare growth announcements

Find US and UK GDP indicators, identify the release editions on the calendar, check measurement definitions, inspect earlier releases, and chart each series separately.

Prepare a foreign currency payment briefing

List economic announcements before a EUR/USD payment deadline, explain the relevant indicators, and review how their recent actual readings compared with forecasts.

Create an indicator reference

Find indicators matching payrolls, inflation, or GDP and organize their source links, measurement descriptions, and release frequencies into research notes.

Questions about Forex Factory event details in opencode

Can opencode use Forex Factory event details?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Forex Factory event details like any built-in tool.

How much does Forex Factory event details 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 Forex Factory event details in opencode?

No. Spiral runs Forex Factory event details on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Forex Factory event details in opencode?

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

Does opencode wait while Forex Factory event details runs?

Forex Factory event details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What part of Forex Factory does this data cover?

It covers the public economic calendar: scheduled releases, indicator descriptions, and historical readings. The documented scope is public, read-only economic data.

How quickly does Forex Factory publish new readings?

Forex Factory says its website calendar displays economic data as it becomes available, without a page refresh. That statement concerns the website and does not establish a separate delivery-time guarantee for these endpoints.

Can a historical reading change?

Yes. Forex Factory explicitly displays revisions, marking revised readings with a yellow triangle and exposing the previous value on hover.

Does the first history response contain every release?

The first expansion contains about 15 recent releases. Further expansions return a longer prefix, and the response indicates whether more history remains.

Does public access allow me to republish the calendar?

Forex Factory's notices expressly prohibit copying, republication, or redistribution of its FEED calendar compilation, including partial copies. Public availability does not provide blanket permission to republish it.

Get started

Start using Forex Factory event details 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