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

VS Code · Finance

How to Use Japan MOF government bond yields in VS Code

Returns daily Japanese government bond yields by maturity from MOF interest-rate files. Use it to compare yield curves or calculate changes over time.

Prompts to try with Japan MOF government bond yields in VS Code

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

Use Japan MOF government bond yields for Japan's 2-year, 10-year, and 30-year maturities during January 2024, and add a spread chart to this project.

Japan MOF government bond yieldsVS Code
Try asking
  • Use Japan MOF government bond yields to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Japan MOF government bond yields and tell me what changed since last week.

  • Check Japan MOF government bond yields and summarize what you find in three bullet points.

  • Pull the newest data from Japan MOF government bond yields and give me the result as a table.

How to set up Japan MOF government bond yields in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code 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 Japan MOF government bond yields

    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": "mof-go-jp/sanctions/jgb_yields",
        "input": {
          "cursor": "<cursor>"
        }
      }'

Then paste one of the prompts above: VS Code finds Japan MOF government bond yields on Spiral, shows the price and runs it.

Japan MOF government bond yields providers and prices

Spiral runs Japan MOF government bond yields through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page size1 to 1000250

Rows per page; next_cursor continues to older rows.

Every API field of Japan MOF sanctions list and JGB yields · Jgb yields is on its tool page: open its card above.

What can you do with Japan MOF government bond yields in VS Code?

Build a Japan research dashboard with JGB yield comparisons and published sanctions evidence for public companies. A coding agent can add curve calculations, company-record views, and sanctions publication checks to the project.

Japan treasury briefing

Prepare a briefing with changes in the JGB curve and changes in published sanctions affecting public banks. Check the sanctions publication, review the list, search relevant banks, and revisit selected records.

Corporate risk committee report

Put Japan's government borrowing-rate movements beside published sanctions information for public corporate counterparties. Include the underlying company records and the sanctions publication used for review.

Financial newsroom research

Support a Japan financial-policy story with JGB yield comparisons and published sanctions records for named public institutions. Use a publication check and full list review to establish the sanctions material being cited.

Japan financial data archive

Maintain daily JGB observations alongside sanctions snapshots. Compare sanctions publication hashes, collect each changed list, and use company searches and record lookups to inspect selected differences.

Questions about Japan MOF government bond yields in VS Code

Can VS Code use Japan MOF government bond yields?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Japan MOF government bond yields like any built-in tool.

How much does Japan MOF government bond yields cost in VS Code?

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

Do I need an Alexandria account to use Japan MOF government bond yields in VS Code?

No. Spiral runs Japan MOF government bond yields on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Japan MOF government bond yields in VS Code?

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

Does VS Code wait while Japan MOF government bond yields runs?

Japan MOF government bond yields runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

Does MOF publish one sanctions file for companies and ships?

MOF provides separate CSV downloads for asset-freeze targets and vessels subject to service-transaction restrictions. The vessel document lists IMO numbers.

How fresh are the Japanese government bond yields?

MOF states that rates are released at 9:30 a.m. on the next business day. The daily series therefore has a publication delay.

What do MOF's government bond rates measure?

They are semiannual compound rates on a constant-maturity basis. MOF's calculation uses maturity grids from 1 to 40 years.

What company information is public in the sanctions data?

Published fields include Japanese and English names, aliases, identifiers, addresses, dates, and legal basis. For example, MOF's Russian sanctions document publishes the Central Bank of the Russian Federation's English name and Moscow address.

Can I collect the sanctions list without mixing publications?

The list uses pagination pinned to one publication. Publication status also exposes the current version and hashes for comparing a stored snapshot with the published data.

Get started

Start using Japan MOF government bond yields in VS Code

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

Paste this into VS Code:

Set up VS Code

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