How to Use Bank of Canada series directory in opencode
Find available Valet series and data groups by their names and descriptions. Use the directory to identify a statistic before checking its metadata and fetching its observations.
Prompts to try with Bank of Canada series directory in opencode
Copy an example into opencode, or ask in your own words.
Use Bank of Canada series directory to retrieve available data groups, then generate a project reference table with each returned name and description.
Use Bank of Canada series directory to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Bank of Canada series directory and tell me what changed since last week.
Check Bank of Canada series directory and summarize what you find in three bullet points.
Pull the newest data from Bank of Canada series directory and give me the result as a table.
How to set up Bank of Canada series directory 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 Bank of Canada series directory
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": "bankofcanada-ca/economic-data/search_series", "input": { "query": "<query>" } }'
Then paste one of the prompts above: opencode finds Bank of Canada series directory on Spiral, shows the price and runs it.
Bank of Canada series directory providers and prices
Spiral runs Bank of Canada series directory 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 |
|---|---|---|---|
| Kind | series, groups, or all | Default all. | |
| Limit | 1 to 100 | Default 20. |
Every API field of Bank of Canada (Valet API and press feeds) · Search series is on its tool page: open its card above.
What can you do with Bank of Canada series directory in opencode?
Build a Canadian economic reporting feature with dated observations, series definitions, and Bank publications. A coding agent can put the retrieved data into project tables and charts while keeping benchmark yields and daily currency averages clearly labeled.
Monthly treasury briefing
Combine CAD exchange rates, government bond yields, and the policy rate with decision statements and relevant Bank publications. Use the series directory and definitions to document additional indicators included in the briefing.
Quarterly board reporting
Prepare a Canadian economic appendix with quarter-end rates, exchange-rate comparisons, bond yield movements, and policy commentary. Identify supplementary statistics through the directory and explain their definitions alongside the tables.
Economics teaching workbook
Build exercises that connect the overnight target, benchmark yields, and CAD exchange rates to published policy statements and research. Include series discovery, definition checks, and historical observations so students can reproduce the comparisons.
Economic dataset dictionary
Identify available datasets, inspect their definitions, and attach sample observations. Give analysts a reference that explains which statistic each identifier represents before they build a report.
CAD reporting worksheet
Prepare historical USD and EUR conversion tables for a business reporting period. Check the exchange-rate definitions and compare the dedicated currency results with the corresponding Valet observations.
Benchmark yield comparison
Compare two-year and ten-year Government of Canada yields over a reporting period. Use series definitions and additional observations to explain the selected benchmarks and calculate their spread.
More on Bank of Canada series directory and opencode
Overview
Bank of Canada series directory in other agents
Questions about Bank of Canada series directory in opencode
Can opencode use Bank of Canada series directory?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Bank of Canada series directory like any built-in tool.
How much does Bank of Canada series directory 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 Bank of Canada series directory in opencode?
No. Spiral runs Bank of Canada series directory on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Bank of Canada series directory in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Bank of Canada series directory runs?
Bank of Canada series directory runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What does the Bank of Canada publish through these sources?
Valet supplies exchange rates, economic statistics, and other financial datasets. The Bank's feeds add its own press releases, speeches, research publications, surveys, and events.
How frequently do the Bank's exchange rates change?
Daily averages are normally published once per business day by 16:30 Eastern Time. They do not provide intraday trading quotes.
Are the exchange rates executable market rates?
The Bank publishes indicative averages based on aggregated quotes from financial institutions. An actual currency conversion can therefore use a different rate.
Does a benchmark bond yield follow the same bond forever?
The selected bond can change as another issue becomes the benchmark. The Bank warns that part of a yield change can reflect this replacement.
Does new data appear in Valet immediately?
The Bank documents a possible processing delay between publication and availability in Valet. A newly released observation may therefore appear later than the corresponding website update.
Start using Bank of Canada series directory 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


