How to Use Japan MOF government bond yields in opencode
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 opencode
Copy an example into opencode, 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.
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 opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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: opencode 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.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page size | 1 to 1000 | 250 | 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 opencode?
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.
More on Japan MOF government bond yields and opencode
Overview
Japan MOF government bond yields in other agents
Questions about Japan MOF government bond yields in opencode
Can opencode use Japan MOF government bond yields?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Japan MOF government bond yields like any built-in tool.
How much does Japan MOF government bond yields 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 Japan MOF government bond yields in opencode?
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 opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Japan MOF government bond yields runs?
Japan MOF government bond yields runs in the background. opencode 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.
Start using Japan MOF government bond yields in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


