Module 5 · Hands-on lab
Sourced one-page market brief
Pull Bank of Canada rates and CMHC housing starts into a spreadsheet without code, chart them, draft checked commentary with AI and credit every source.
About 90 min
What you'll build
A one-page Toronto market brief for a fictional brokerage, Maple & Main Realty, built from public data you pull yourself: a chart of prime and the five-year conventional mortgage rate from the Bank of Canada's Valet API, Toronto housing starts from a Statistics Canada table of CMHC data, a short commentary you draft with AI and check line by line, and a sources section with each licence's credit wording. You will also start your data source register. No code is needed; an optional code path is at the end.
Before you start
- A spreadsheet. Google Sheets with a free Google account is the easiest route because its
IMPORTDATAfunction reads a CSV address directly. Excel works too (Microsoft 365 or the free Excel for the web); you will download the CSV files and open them instead. - A document editor. Google Docs, Word or Word for the web, all free.
- An AI assistant on a free plan, such as Claude, ChatGPT, Gemini or Microsoft Copilot. You will paste only public statistics into it.
- The template. Download
data-source-register.csvfrom this module's template section and open it in your spreadsheet. - Time: 75 to 100 minutes.
No client data, listing data or paid accounts are needed.
Steps
Part A: Pull the rate data (Bank of Canada)
-
Create a new Google Sheet and name it "Maple & Main market brief". Rename the first tab
Rates raw. -
Click cell A1 and type this formula exactly, then press Enter:
=IMPORTDATA("https://www.bankofcanada.ca/valet/observations/V80691311,V80691335/csv?recent_years=3")The sheet fills in a few seconds. Below the terms link and series descriptions, find the row reading
OBSERVATIONSand, under it, the row withdate,V80691311andV80691335. Excel: paste the address (without the formula wrapper) into your browser's address bar, save the CSV it downloads, then open it in Excel. -
Add a second tab named
Rates. Copy thedaterow and every row below it fromRates raw, and paste them intoRatesstarting at A1 using Paste special, then Values only, so the chart does not break when the import refreshes. Rename the headers toWeek,Prime rate (%)and5-year conventional mortgage (%). -
Get the current policy rate for your text. In an empty cell of
Rates rawfar to the right, enter=IMPORTDATA("https://www.bankofcanada.ca/valet/observations/V39079/csv?recent=1")and note the last row's date and value. -
Build the chart: select columns A to C in
Rates, then Insert, then Chart. In the Chart editor choose Line chart. Under Customize, set the title to "Prime and 5-year conventional mortgage rate, weekly, last 3 years", label the vertical axis "Percent", and make sure both series appear in the legend.
Part B: Pull housing starts (CMHC data via Statistics Canada)
- Open statcan.gc.ca and search for table 34-10-0154-01 ("Canada Mortgage and Housing Corporation, housing starts, under construction and completions in selected census metropolitan areas, monthly").
- Click Add/Remove data. Under Geography, clear all and select only Toronto, Ontario. Under Housing estimates select Housing starts. Under Type of unit select Total units, and, if you like, Single-detached units and Apartment and other unit types. Under Reference period choose the last 24 months. Click Apply.
- Click Download options, then the CSV Download as displayed option. Open the file and copy its rows into a new tab named
Starts. - Copy the table's DOI (shown on the table page, in the form
https://doi.org/10.25318/3410015401-eng) and the latest reference month into your notes. - Make a column chart of total housing starts by month. Title it "Housing starts, Toronto CMA, monthly, total units".
Part C: Draft and check the commentary
-
In a
Notestab, write five facts in plain text, each with its date, for example: "5-year conventional mortgage rate, week of 14 October 2026:" followed by the value in your sheet. Use only numbers from your sheet. -
Paste those five facts into your AI assistant with this prompt:
You write a monthly market note for Maple & Main Realty, a Toronto brokerage. Using ONLY the facts below, write 120 to 150 words of plain, neutral commentary for past clients. Rules: no forecasts, no advice to buy or sell, no numbers that are not in the facts, keep each number's date beside it, Canadian spelling. End with one sentence noting that the 5-year conventional rate is a reference rate and individual offers vary. FACTS: [paste your five facts] -
Check the draft against your sheet, number by number. Delete any sentence that adds a number, a cause or a prediction you cannot source. Record what you changed in your
Notestab.
Part D: Assemble the one-page brief
- Create a document titled "Toronto market brief" followed by the month and year. Add, in this order: three headline numbers with their dates; the rate chart; the housing starts chart (copy each chart from Sheets and paste it, or download it as an image); your checked commentary; a short disclaimer ("For general information only. Not financial advice. Speak with a mortgage professional about rates available to you."); and a Sources section.
- Write the Sources section with the exact wording each licence asks for, filled in:
- Bank of Canada: name the Bank of Canada as the source, give the series names and the date you retrieved them, and say you charted them.
- CMHC data: "Source: Canada Mortgage and Housing Corporation (CMHC), housing starts, Toronto CMA," then the months covered, then: "This information is reproduced and distributed on an "as is" basis with the permission of CMHC." Add the Statistics Canada table number and DOI as where you retrieved it.
- If you added any Statistics Canada data of its own (for example the New housing price index, table 18-10-0205-01), use its credit line from lesson 4.
- Keep it to one page, with no Bank of Canada, Statistics Canada or CMHC logos; their terms do not allow them.
Part E: Fill your data source register
- Open
data-source-register.csv. It comes prefilled with rows for the sources this module covers. Update the rows for the Bank of Canada Valet API and the Statistics Canada table you used: setlast_reviewedto today's date and adjustrefresh_frequencyanddisplay_rulesto what you actually saw. - Add one new row for a source you would like to use next (for example your city's open data portal), filling every column.
If you're comfortable with code
You can ask a coding agent (Module 3) to "write a short Python script that fetches Bank of Canada Valet series V80691311 and V80691335 for the last three years as JSON, and Statistics Canada vector 42127475 for the latest 24 periods using the WDS getDataFromVectorsAndLatestNPeriods method, then saves both as CSV files". The core of it looks like this:
import requests
rates = requests.get("https://www.bankofcanada.ca/valet/observations/V80691311,V80691335/json", params={"recent_years": 3}).json()
starts = requests.post("https://www150.statcan.gc.ca/t1/wds/rest/getDataFromVectorsAndLatestNPeriods", json=[{"vectorId": 42127475, "latestN": 24}]).json()
The first line loads a web request library. The second sends a GET to Valet and reads the JSON reply. The third sends a POST to the Web Data Service for the latest 24 values of vector 42127475: Toronto housing starts, total units, table 34-10-0154-01.
What to submit
Paste into the submission box: (1) a link to your one-page brief (or its text with chart images described), including the Sources section; (2) the AI prompt you used and a two-line note of what you changed in the AI draft after checking it; and (3) your updated data source register rows for the sources you used, plus the one new row, copied as text.
Check your work
- Every number in the brief appears in your sheet with a date, and the date is printed beside it in the brief.
- The rate chart has a title, axis label and both series.
- The Sources section uses the credit wording each licence requires and includes the Statistics Canada table number and DOI.
- The commentary contains no forecasts and no numbers that are not in your facts list.
- No agency logos appear, and the brief fits on one page.
- Your register rows have every column filled, including licence, display rules and last reviewed.
If you get stuck
IMPORTDATAshows an error or "Loading…" for a long time. Check the address has no spaces, then try again. If it still fails, open the address in your browser, save the CSV, and use File, then Import, then Upload in Google Sheets.- The chart shows one flat line or nothing. Your values may be text. Select the value columns and choose Format, then Number, then Number. Make sure you charted from the
Ratestab, not the raw tab with the header lines. - The latest month is not what you expected. Tables update on their own schedules; use the latest month shown and say so.
- The AI added a reason ("because of the Bank's decision…"). Delete it unless you can source it. Your prompt said facts only; tell the assistant it broke a rule and ask again.
- You cannot find Toronto in the Geography list. It appears as "Toronto, Ontario". Use the search box inside Add/Remove data.
Template · CSV
Data source register
A spreadsheet of every data source your brokerage uses, prefilled for the sources in this module, with owner, access, licence, cost, refresh, allowed uses and display rules.
Submit your lab
Loading your lab status…