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

Codex · Finance

How to Use Fiscal.ai financial ratios by period in Codex

Returns calculated financial ratios organized by reporting period, including valuation and profitability measures. Use it to compare reported periods or companies on the same metric.

Prompts to try with Fiscal.ai financial ratios by period in Codex

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

Use Fiscal.ai financial ratios by period for Apple, AAPL on NASDAQ, and render a table of the returned valuation ratios with their reporting periods.

Fiscal.ai financial ratios by periodCodex
Try asking
  • Use Fiscal.ai financial ratios by period for Microsoft, MSFT on NASDAQ, and add a gross profit margin chart using the available reported periods.

  • Use Fiscal.ai financial ratios by period for Microsoft and Apple on NASDAQ, then add a comparison table for P/E using matching returned reporting periods.

  • Use Fiscal.ai financial ratios by period to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Fiscal.ai financial ratios by period and tell me what changed since last week.

How to set up Fiscal.ai financial ratios by period in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 Fiscal.ai financial ratios by period

    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": "fiscal-ai/ratios/series",
        "input": {
          "fscl": "<fscl>"
        }
      }'

Then paste one of the prompts above: Codex finds Fiscal.ai financial ratios by period on Spiral, shows the price and runs it.

Fiscal.ai financial ratios by period providers and prices

Spiral runs Fiscal.ai financial ratios by period through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Fiscal.ai · Ratios by period
fiscal-ai/ratios/series

What can you do with Fiscal.ai financial ratios by period in Codex?

Build an internal chart that compares Microsoft's returned ratios across dates or reporting periods. A coding agent can add the data to your project's analysis view and label the observation frequency clearly.

Compare company valuations

Compare Microsoft's and Apple's returned valuation ratios. Use matching reporting periods for a financial comparison or matching trading dates for a daily comparison.

Put a valuation in historical context

Calculate where a company's latest returned valuation ratio sits within its available history. Keep daily observations and reporting-period observations in separate comparisons.

Review valuation changes around earnings

Examine returned ratios before and after a company's earnings announcement. Use daily history to inspect the surrounding trading dates and period history to compare reported results.

Prepare an internal watchlist brief

Summarize the latest returned ratios for a short list of public companies and compare them with earlier observations. Highlight the largest changes for further research.

Check valuation thresholds

Check whether a returned valuation ratio crosses an analyst's chosen threshold. Use daily observations for trading-date checks or reported periods for a financial review.

Build an internal ratio chart

Chart a public company's returned ratio history with its dates and metric labels. Choose a daily chart for changes between reports or a period chart for reported comparisons.

Compare profitability across periods

Compare returned gross profit margins across Microsoft's available reporting periods. Use Fiscal.ai's definition, gross profit divided by total revenues, to explain the measure.

Questions about Fiscal.ai financial ratios by period in Codex

Can Codex use Fiscal.ai financial ratios by period?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Fiscal.ai financial ratios by period like any built-in tool.

How much does Fiscal.ai financial ratios by period cost in Codex?

$0.026189 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Alexandria account to use Fiscal.ai financial ratios by period in Codex?

No. Spiral runs Fiscal.ai financial ratios by period on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Fiscal.ai financial ratios by period in Codex?

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

Does Codex wait while Fiscal.ai financial ratios by period runs?

Fiscal.ai financial ratios by period runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

Which markets does Fiscal.ai's data API cover?

Fiscal.ai advertises more than 13,000 public companies across the US, Canada, ADRs, UK, and Europe. That is the API coverage figure, rather than a guarantee that every ratio exists for every company.

Where do Fiscal.ai's financial ratios come from?

Fiscal.ai says it produces its own fundamentals and ratios for US, Canadian, ADR, UK, and EU companies.

How soon do new earnings reach the underlying data?

Fiscal.ai says fundamental financial data for US, Canadian, EU, UK, and ADR companies typically updates three to seven minutes after earnings are reported. This describes the underlying fundamentals, rather than a separate refresh guarantee for every calculated ratio.

How much reporting history does Fiscal.ai advertise?

The Financials & Ratios package advertises more than 20 annual periods and 40 quarterly periods. Those figures describe reporting history, rather than the number of daily observations.

Which earnings figure does Fiscal.ai use for P/E?

Fiscal.ai's ratio reference defines P/E as share price divided by diluted EPS. It also marks P/E as available with daily history.

Get started

Start using Fiscal.ai financial ratios by period in Codex

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

Paste this into Codex:

Set up Codex

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