dwelldelta-mcp 0.5.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,187 @@
1
+ /**
2
+ * nsw_sale_prices (0.7.0): NSW median sale prices by postcode and council, from the NSW Department of Communities and
3
+ * Justice's Rent and Sales Report, sales tables, as published at tools.dwelldelta.com.au/market/nsw-sales.json
4
+ * (CC BY 4.0, republishable with attribution; DCJ's licence re-read for the sales tables on 2026-10-10).
5
+ *
6
+ * Medians of the dwellings SOLD in a quarter, by dwelling type - never the price or value of any one home, and never an
7
+ * individual sale. Three things this tool will not let an agent miss:
8
+ * - a sale price without its dwelling type answers nobody's question, so every area is given as all dwellings,
9
+ * non-strata (separate houses) and strata (units, town houses, villas), each labelled;
10
+ * - DCJ's own table has rows that a few unusual sales set (postcode 2034, strata, March 2026: $8.954m, up 478%, from
11
+ * 184 sales). The feed marks them `unusual_prices`; the answer says UNUSUAL in words, on that line, with the reason;
12
+ * a total the feed notes as mostly such a row's sales (`unusual_part`: Randwick council, 466 of 613) says so on its
13
+ * own line, and is said only to be possibly moved by them - never to have been set by them, nor not; a mark or a
14
+ * note this version does not know is shown as the file gives it, with nothing claimed about it;
15
+ * - a gap is said with its reason and is never shown as zero.
16
+ *
17
+ * The feed keeps DCJ's unit (thousands of dollars) and so does the structured result, which says so; the text writes
18
+ * the same figure out in dollars, to the thousand DCJ reports.
19
+ *
20
+ * Loaded like the rents feeds: DWELLDELTA_STATE_RENTS_DIR (a folder holding copies of the feeds), else the owner's
21
+ * live store, else the published file (fetched once at start - one public file; nothing about the user or their
22
+ * questions is sent - and used if well formed and not older than the bundled copy), else the copy bundled at pack
23
+ * time. DWELLDELTA_OFFLINE=1 never fetches.
24
+ */
25
+ import { existsSync } from "node:fs";
26
+ import { fileURLToPath } from "node:url";
27
+ import { dirname, join } from "node:path";
28
+ import { loadJson, envelope, ToolError, FOOTER, FETCH_TIMEOUT_MS } from "./tools.mjs";
29
+ import { quarterKey } from "./vic-rents-tool.mjs";
30
+ import { signed, match, nswPostcodes, MAX_ROWS, BUNDLED_DIR, PUBLISHED_BASE } from "./area-rents-tool.mjs";
31
+
32
+ const HERE = dirname(fileURLToPath(import.meta.url));
33
+ const LIVE_DIR = join(HERE, "..", "..", "dwelldelta-data", "market");
34
+ export const SALES_FILE = "nsw-sales.json";
35
+ export const DWELLING_TYPES = ["total", "non_strata", "strata"];
36
+ const LABEL = { total: "all dwellings", non_strata: "houses (non-strata)", strata: "units and town houses (strata)" };
37
+ /** The two reasons the builder writes in `unusual_prices`, word for word; anything else there - the same rule with
38
+ * another threshold included - is a mark this version does not know, and is not called UNUSUAL. */
39
+ const REASONS = ["the median equals a quartile: many sales at one identical price", "the third quartile is more than 3 times the median"];
40
+ /** `unusual_part` as the builder writes it: "its strata row is marked unusual_prices (...), and that row is 466 of this total's 613 sales". */
41
+ const KNOWN_PART = new RegExp(`^its (?:non-strata|strata) row is marked unusual_prices \\((?:${REASONS.join("|")})\\), and that row is (\\d+) of this total's (\\d+) sales$`);
42
+ const has = (v) => v != null && v !== false && v !== "";
43
+ const knownMark = (v) => REASONS.includes(v);
44
+ /** The builder's note, and its own numbers bear it out: the second is this row's sales and the first is more than half of it. */
45
+ function knownPart(r) {
46
+ const m = typeof r.unusual_part === "string" ? KNOWN_PART.exec(r.unusual_part) : null;
47
+ return m !== null && Number(m[2]) === r.sales && 2 * Number(m[1]) > Number(m[2]);
48
+ }
49
+ /** What a row carries, as this version can read it: a mark and a note, each "known", "unknown" or null. The note is
50
+ * known only as the builder writes it: on a total, with no mark of the total's own. */
51
+ function reads(r, type) {
52
+ const mark = !has(r.unusual_prices) ? null : knownMark(r.unusual_prices) ? "known" : "unknown";
53
+ const part = !has(r.unusual_part) ? null : type === "total" && mark === null && knownPart(r) ? "known" : "unknown";
54
+ return { mark, part };
55
+ }
56
+ const HINT = "NSW sale prices are by four-digit postcode (area: \"2148\") or by council (council: \"Blacktown\").";
57
+
58
+ const wellFormed = (f) => f && f.state === "NSW" && f.measure === "sale_price" && quarterKey(f.quarter) > 0
59
+ && Array.isArray(f.areas) && f.areas.length > 0 && Array.isArray(f.councils) && f.state_total?.total
60
+ && Array.isArray(f.limits) && f.licence && f.attribution && f.changes_made && f.unit;
61
+
62
+ /** The feed and where it came from ("env", "live", "published" or "bundled"); { feed: null } if none can be read. */
63
+ export async function loadNswSales({ env = process.env, fetchImpl = globalThis.fetch, liveDir = LIVE_DIR,
64
+ bundledDir = BUNDLED_DIR } = {}) {
65
+ // A rents feed saved under this name is no sales feed: `measure` must say sale_price or the copy does not answer.
66
+ const read = (path) => loadJson(path).then((f) => (wellFormed(f) ? f : null)).catch(() => null);
67
+ if (env.DWELLDELTA_STATE_RENTS_DIR) return { feed: await read(join(env.DWELLDELTA_STATE_RENTS_DIR, SALES_FILE)), origin: "env" };
68
+ if (existsSync(join(liveDir, SALES_FILE))) return { feed: await read(join(liveDir, SALES_FILE)), origin: "live" };
69
+ const shipped = await read(join(bundledDir, SALES_FILE));
70
+ if (env.DWELLDELTA_OFFLINE !== "1" && typeof fetchImpl === "function") {
71
+ try {
72
+ const res = await fetchImpl(PUBLISHED_BASE + SALES_FILE, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
73
+ const got = res.ok ? await res.json() : null;
74
+ if (wellFormed(got) && (!shipped || quarterKey(got.quarter) >= quarterKey(shipped.quarter))) {
75
+ return { feed: got, origin: "published" };
76
+ }
77
+ } catch {
78
+ // Offline, blocked or slow: the bundled copy answers, and its quarter says how current it is.
79
+ }
80
+ }
81
+ return { feed: shipped, origin: shipped ? "bundled" : null };
82
+ }
83
+
84
+ /** 1033 (thousands, as DCJ reports) -> "$1,033,000". */
85
+ const price = (k) => `$${(k * 1000).toLocaleString("en-AU")}`;
86
+
87
+ function line(r, name, type) {
88
+ const label = `${name}, ${LABEL[type]}`;
89
+ if (r == null) return `${label}: no row in DCJ's table.`;
90
+ if (r.median_price_k_aud == null) return `${label}: no median (${r.withheld ?? "not reported"}).`;
91
+ const sales = r.sales_band ? ` from ${r.sales_band} sales (DCJ withholds the count)`
92
+ : r.sales == null ? "" : ` from ${r.sales.toLocaleString("en-AU")} sales`;
93
+ const change = r.change_pct == null ? "" : `, ${signed(r.change_pct)} on a year before`;
94
+ const spread = r.first_quartile_k_aud == null || r.third_quartile_k_aud == null ? ""
95
+ : `; half of sales between ${price(r.first_quartile_k_aud)} and ${price(r.third_quartile_k_aud)}`;
96
+ // UNUSUAL is the word the tool's description says means "set by a few very large sales", so only the two
97
+ // reasons that mean that are printed under it.
98
+ const carries = reads(r, type);
99
+ const mark = carries.mark === null ? ""
100
+ : (carries.mark === "known" ? ` UNUSUAL - ${r.unusual_prices}`
101
+ : ` MARKED (unusual_prices) - ${typeof r.unusual_prices === "string" ? r.unusual_prices : "a mark this version of the tool cannot put in words"}`) +
102
+ ": do not quote this as the going price of a home there.";
103
+ const part = carries.part === null ? ""
104
+ : carries.part === "known" ? ` MOSTLY A MARKED ROW - ${r.unusual_part}: its median and its change may be moved by that row's sales.`
105
+ : ` NOTE (unusual_part) - ${typeof r.unusual_part === "string" ? r.unusual_part : "a note this version of the tool cannot put in words"}.`;
106
+ return `${label}: median ${price(r.median_price_k_aud)}${sales}${change}${spread}` +
107
+ `${r.small_sample ? " (small sample: treat with caution)" : ""}.${mark}${part}`;
108
+ }
109
+
110
+ /** nsw_sale_prices: a postcode, a council, or neither for the state; optionally one dwelling type. */
111
+ export function salePricesResult({ area, council, dwelling_type } = {}, feed, now = new Date(), { nswSuburbs = [] } = {}) {
112
+ if (!feed) {
113
+ throw new ToolError("The NSW sale prices feed is not on this machine.",
114
+ `Point DWELLDELTA_STATE_RENTS_DIR at a folder holding a copy of ${PUBLISHED_BASE}${SALES_FILE}.`);
115
+ }
116
+ if (dwelling_type != null && !DWELLING_TYPES.includes(dwelling_type)) {
117
+ throw new ToolError(`No dwelling type ${JSON.stringify(dwelling_type)}.`,
118
+ `Use one of ${DWELLING_TYPES.join(", ")} - or leave it out for all three.`);
119
+ }
120
+ const types = dwelling_type ? [dwelling_type] : DWELLING_TYPES;
121
+ let areas = [], councils = [];
122
+ if (area != null && String(area).trim()) {
123
+ areas = match(feed.areas, "area", area);
124
+ if (!areas.length) {
125
+ const named = nswPostcodes(area, nswSuburbs, feed);
126
+ throw new ToolError(`No NSW postcode matches ${JSON.stringify(area)}.`,
127
+ `${HINT} ${feed.areas.length.toLocaleString("en-AU")} postcode rows are held.` +
128
+ (named.length ? ` In the NSW suburb list (NSW Spatial Services, CC BY 3.0 AU): ${named.join("; ")}. Call ` +
129
+ "again with that postcode, and say the figure is for the whole postcode, not the suburb alone." : ""));
130
+ }
131
+ }
132
+ if (council != null && String(council).trim()) {
133
+ councils = match(feed.councils, "council", council);
134
+ if (!councils.length) {
135
+ throw new ToolError(`No NSW council matches ${JSON.stringify(council)}.`,
136
+ `Try part of a council's name; ${feed.councils.length} councils are held. ${HINT}`);
137
+ }
138
+ }
139
+ const whole = !areas.length && !councils.length;
140
+ const dropped = [];
141
+ for (const [label, rows] of [["postcode", areas], ["council", councils]]) {
142
+ if (rows.length > MAX_ROWS) dropped.push(`${rows.length - MAX_ROWS} more ${label} rows match: narrow the name.`);
143
+ }
144
+ areas = areas.slice(0, MAX_ROWS);
145
+ councils = councils.slice(0, MAX_ROWS);
146
+ const shown = [...(whole ? [["New South Wales (whole state)", feed.state_total]] : []),
147
+ ...councils.map((g) => [`${g.council} (council)`, g]), ...areas.map((g) => [`${g.area} (postcode)`, g])];
148
+ // Only rows that are shown and have a median are spoken of: line() says nothing of a mark on any other.
149
+ const seen = shown.flatMap(([, g]) => types.filter((t) => g[t] && g[t].median_price_k_aud != null).map((t) => reads(g[t], t)));
150
+ const marked = seen.some((s) => s.mark !== null), noted = seen.some((s) => s.part !== null);
151
+ const setByAFew = seen.some((s) => s.mark === "known"), mostlyARow = seen.some((s) => s.part === "known");
152
+ const unknown = seen.some((s) => s.mark === "unknown" || s.part === "unknown");
153
+ const env = envelope({ sources: [{ source: feed.source, licence: feed.licence, attribution: feed.attribution }],
154
+ dataAsOf: feed.quarter, origin: feed.origin ?? null }, now);
155
+ const text = [
156
+ `${feed.what}. Quarter: ${feed.quarter}, against ${feed.compared_with}. Medians of homes sold - not asking ` +
157
+ "prices, not valuations, and not the price or value of any one home.",
158
+ "",
159
+ ...shown.flatMap(([name, g]) => types.map((t) => line(g[t], name, t))),
160
+ ...dropped,
161
+ ...(whole ? ["", `${feed.areas.length.toLocaleString("en-AU")} postcode rows and ${feed.councils.length} councils ` +
162
+ "are available: call again with area or council."] : []),
163
+ ...(setByAFew ? ["", "At least one row above is marked UNUSUAL: its figure is DCJ's own, and a few very large sales " +
164
+ "or many sales at one identical price have set it. Say so if you mention it."] : []),
165
+ ...(mostlyARow ? ["", "A total above is mostly the sales of a row marked UNUSUAL, by DCJ's own numbers of sales. The " +
166
+ "total's figure is DCJ's own and carries no UNUSUAL mark of its own, but its median and its change may be moved " +
167
+ "by that row's sales. Say so if you mention it."] : []),
168
+ ...(unknown ? ["", "At least one row above carries a mark or a note this version of the tool does not know; it is shown " +
169
+ "on its line as the file gives it. Its figure is DCJ's own. Do not quote that row as a going price, and read " +
170
+ "\"What DwellDelta changed\" below for what the file's marks mean."] : []),
171
+ "",
172
+ "Limits:",
173
+ ...feed.limits.map((l) => "- " + l),
174
+ "",
175
+ `Source: ${feed.attribution}`,
176
+ `What DwellDelta changed: ${feed.changes_made}`,
177
+ FOOTER,
178
+ ].join("\n");
179
+ const pick = (g) => Object.fromEntries(Object.entries(g).filter(([k]) => !DWELLING_TYPES.includes(k) || types.includes(k)));
180
+ return { text, structured: { ...env, state: "NSW", measure: "sale_price", unit: feed.unit, area_kind: "postcode",
181
+ quarter: feed.quarter, compared_with: feed.compared_with,
182
+ dwelling_types: feed.dwelling_types ?? null,
183
+ state_total: whole ? pick(feed.state_total) : null,
184
+ councils: councils.map(pick), areas: areas.map(pick), any_unusual: marked,
185
+ any_unusual_part: noted,
186
+ truncated: dropped.length > 0, limits: feed.limits, changes_made: feed.changes_made } };
187
+ }
package/server.mjs CHANGED
@@ -2,8 +2,11 @@
2
2
  // DwellDelta MCP server: Australian property market data for AI agents. Runs on the user's machine over stdio and
3
3
  // records nothing unless the user chooses to add their rent. From 0.4.0 it fetches the week's indicators once at start from tools.dwelldelta.com.au - one
4
4
  // public file; nothing about the user or their questions is sent - and falls back to its bundled copy
5
- // (DWELLDELTA_OFFLINE=1 never fetches). Four read-only tools; the logic lives in tools.mjs, and vic_rents
6
- // (Victorian rents by suburb group, 0.5.0) in vic-rents-tool.mjs, loaded the same way. A fourth,
5
+ // (DWELLDELTA_OFFLINE=1 never fetches). Six read-only tools; the logic lives in tools.mjs, vic_rents
6
+ // (Victorian rents by suburb group, 0.5.0) in vic-rents-tool.mjs, area_rents (NSW postcodes, Queensland suburbs
7
+ // and WA localities, 0.6.0) in area-rents-tool.mjs, and nsw_sale_prices (NSW median sale prices by postcode, 0.7.0)
8
+ // in sale-prices-tool.mjs, each feed loaded the same way. area_rents also answers by dwelling type and bedrooms for
9
+ // NSW and Queensland (0.8.0), from two larger files that are not bundled. A seventh tool,
7
10
  // contribute_rent (contribute-tool.mjs), is connected from 0.5.0 (2026-10-03): it sends a rent only on a second call carrying the user's agreement.
8
11
  //
9
12
  // Every result carries text to quote and a structured result (the figures plus where they come from, under which
@@ -19,6 +22,8 @@ import {
19
22
  } from "./tools.mjs";
20
23
  import { makeContributeTool, INSTRUCTION } from "./contribute-tool.mjs";
21
24
  import { loadVicRents, vicRentsResult } from "./vic-rents-tool.mjs";
25
+ import { loadAllAreaRents, loadAllRentsByType, wantsByType, areaRentsResult, STATES } from "./area-rents-tool.mjs";
26
+ import { loadNswSales, salePricesResult, DWELLING_TYPES } from "./sale-prices-tool.mjs";
22
27
  import { HOME_TYPES, BEDROOMS, LEASE_KINDS, WHOSE } from "./vendor/contribute.mjs";
23
28
 
24
29
  const rents = await loadJson(RENTS_PATH);
@@ -28,6 +33,13 @@ const loaded = await loadSnapshot();
28
33
  const snapshot = loaded.snapshot ? { ...loaded.snapshot, origin: loaded.origin } : null;
29
34
  const vicLoaded = await loadVicRents();
30
35
  const vic = vicLoaded.feed ? { ...vicLoaded.feed, origin: vicLoaded.origin } : null;
36
+ const areaRents = await loadAllAreaRents();
37
+ // The NSW and Queensland rents by dwelling type files are large and are not bundled. They are asked for here, once,
38
+ // at start - never in response to a question - and NOT awaited: the server is ready without them, and the first
39
+ // by-type question waits for this promise. It never rejects.
40
+ const rentsByType = loadAllRentsByType();
41
+ const salesLoaded = await loadNswSales();
42
+ const nswSales = salesLoaded.feed ? { ...salesLoaded.feed, origin: salesLoaded.origin } : null;
31
43
  const readOnly = { readOnlyHint: true, idempotentHint: true, openWorldHint: false, destructiveHint: false };
32
44
 
33
45
  const ok = ({ text, structured }) => ({ content: [{ type: "text", text }], structuredContent: structured });
@@ -78,8 +90,9 @@ server.registerTool("market_indicators", {
78
90
 
79
91
  server.registerTool("data_sources", {
80
92
  title: "What DwellDelta covers",
81
- description: "The sources behind DwellDelta's figures, their licences, and what it cannot answer (individual " +
82
- "sale prices, suburb rents outside Victoria, advice).",
93
+ description: "The sources behind DwellDelta's figures, their licences, and what it cannot answer (what any one " +
94
+ "home sold for, the rent of a single street or home, rents by area outside NSW, Victoria, Queensland and WA, " +
95
+ "sale prices outside NSW, advice).",
83
96
  inputSchema: {},
84
97
  annotations: readOnly,
85
98
  }, guard(() => dataSourcesResult(needSnapshot())));
@@ -103,6 +116,57 @@ server.registerTool("vic_rents", {
103
116
  return vicRentsResult(args, vic);
104
117
  }));
105
118
 
119
+ server.registerTool("area_rents", {
120
+ title: "NSW, Queensland and WA rents by postcode, suburb or locality",
121
+ description: "Median weekly rent of new bonds lodged in the latest quarter, all dwellings together, with the bond " +
122
+ "count and the change on a year before, for one state per call: NSW by postcode or council (NSW Department of " +
123
+ "Communities and Justice), QLD by suburb or council (Residential Tenancies Authority), WA by locality " +
124
+ "(calculated by DwellDelta from the Government of Western Australia's bond records). Each CC BY 4.0. With no " +
125
+ "area or council it gives the state's own figure. New-bond medians, not advertised rents; never add or compare " +
126
+ "the states as one series; quote the quarter, the source line and the limits. Victoria is in vic_rents. " +
127
+ "For NSW and QLD, give dwelling_type or bedrooms (or both) for the publisher's figure for that kind of home " +
128
+ "instead - a two-bedroom unit, a three-bedroom house. Only combinations the publisher reports are answered: " +
129
+ "one with no published median is said to have none, and must not be filled from another area or from the " +
130
+ "all-dwellings figure. Many such figures rest on few bonds. WA has no figures by dwelling type or bedrooms.",
131
+ inputSchema: {
132
+ state: z.enum(Object.keys(STATES)).describe("NSW, QLD or WA - one state per call"),
133
+ area: z.string().optional().describe("NSW: a four-digit postcode (a suburb name returns its postcodes to try). " +
134
+ "QLD: a suburb. WA: a locality. Part of a suburb or locality name works"),
135
+ council: z.string().optional().describe("A council (NSW or QLD), or part of its name"),
136
+ dwelling_type: z.string().optional().describe("NSW and QLD only. NSW (DCJ's labels): House, Townhouse, " +
137
+ "Flat/Unit, Other. QLD (the RTA's): Flat, House, Townhouse. 'unit' and 'apartment' are read as flat/unit. " +
138
+ "Without bedrooms, every size the publisher reports for that type is given"),
139
+ bedrooms: z.string().optional().describe("NSW and QLD only: a number of bedrooms, as '2' or '2 bedrooms'. NSW " +
140
+ "also has Bedsitter, and 4 means DCJ's '4 or more Bedrooms'; a number above 4 is answered under that label " +
141
+ "too, and the answer says it is not for that number alone. QLD: the RTA publishes flats of 1 to 3, houses " +
142
+ "of 2 to 4 and town houses of 2 to 3, and does not define its labels - reading the number as bedrooms is " +
143
+ "DwellDelta's. A plus means 'or more', which only DCJ's 4 has: '3+', and any 'N+' for QLD, is refused, not " +
144
+ "answered as exactly N. Without dwelling_type, every type the publisher reports at that size is given"),
145
+ },
146
+ annotations: readOnly,
147
+ }, guard(async (args) => areaRentsResult(args, areaRents, new Date(),
148
+ { nswSuburbs: suburbs, byType: wantsByType(args) ? await rentsByType : {} })));
149
+
150
+ server.registerTool("nsw_sale_prices", {
151
+ title: "NSW median sale prices by postcode or council",
152
+ description: "Median sale price of the dwellings sold in the latest reported quarter in NSW, with the quartiles, " +
153
+ "the number of sales and the change on a year before, by postcode or council and by dwelling type - all " +
154
+ "dwellings, non_strata (separate houses) and strata (units, town houses, villas). From the NSW Department of " +
155
+ "Communities and Justice's Rent and Sales Report (CC BY 4.0). Medians of homes sold: not asking prices, not " +
156
+ "valuations, and never what any one home sold for or is worth. A line marked UNUSUAL was set by a few very " +
157
+ "large sales - say so, and do not quote it as a going price. A total noted as mostly a marked row's sales may " +
158
+ "be moved by them - say that, and no more. A line with any other mark or note: do not quote it as a going " +
159
+ "price, and claim nothing about why. Always name the dwelling type, the quarter and " +
160
+ "the source line, and repeat the limits. With no area or council it gives the state's own figures.",
161
+ inputSchema: {
162
+ area: z.string().optional().describe("A four-digit NSW postcode (a suburb name returns its postcodes to try)"),
163
+ council: z.string().optional().describe("An NSW council, or part of its name"),
164
+ dwelling_type: z.enum(DWELLING_TYPES).optional().describe("total, non_strata (houses) or strata (units, town " +
165
+ "houses, villas); leave out for all three"),
166
+ },
167
+ annotations: readOnly,
168
+ }, guard((args) => salePricesResult(args, nswSales, new Date(), { nswSuburbs: suburbs })));
169
+
106
170
  server.registerTool("contribute_rent", {
107
171
  title: "Add the user's own rent (NSW), with their consent",
108
172
  description: "Add the user's own weekly rent, anonymously, to DwellDelta's NSW suburb rents - suburb, home type, " +
package/tools.mjs CHANGED
@@ -62,7 +62,7 @@ export async function loadSnapshot({ env = process.env, fetchImpl = globalThis.f
62
62
  }
63
63
 
64
64
  export const FOOTER = "Information, not advice. From DwellDelta (dwelldelta.com.au), built on public data.";
65
- export const SERVER_VERSION = "0.5.0";
65
+ export const SERVER_VERSION = "0.8.0";
66
66
  // The indicators snapshot is rebuilt every Monday. Older than this and the answer says so, in words and in the
67
67
  // structured result, rather than serving a stale figure as current.
68
68
  export const STALE_DAYS = 10;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "publisher": "DwellDelta, a service of Xcelerent Pty Ltd",
3
- "built": "2026-10-05",
3
+ "built": "2026-10-12",
4
4
  "indicators": [
5
5
  {
6
6
  "id": "cash_rate",
@@ -286,6 +286,96 @@
286
286
  "over": "quarter"
287
287
  }
288
288
  },
289
+ {
290
+ "id": "commercial_property_exposures",
291
+ "name": "Commercial property: loans outstanding, banks and other deposit-takers",
292
+ "geography": "Australia",
293
+ "value": 501.59,
294
+ "unit": "AUD billion",
295
+ "period": "2026-06",
296
+ "source": "APRA Quarterly authorised deposit-taking institution property exposures statistics, all ADIs",
297
+ "licence": "CC BY 3.0 AU",
298
+ "attribution": "Australian Prudential Regulation Authority",
299
+ "change": {
300
+ "value": 8.3,
301
+ "unit": "percent",
302
+ "over": "year"
303
+ },
304
+ "limit": "Commercial property, not housing: what banks and other deposit-takers reporting to APRA have lent against offices, shops, industrial property, land and development - including $67 billion against residential development and investment blocks (APRA's 'other residential') and their lending outside Australia. Non-bank and foreign lenders are left out.",
305
+ "sector": "commercial"
306
+ },
307
+ {
308
+ "id": "commercial_property_office",
309
+ "name": "Commercial property: loans outstanding against office property",
310
+ "geography": "Australia",
311
+ "value": 119.98,
312
+ "unit": "AUD billion",
313
+ "period": "2026-06",
314
+ "source": "APRA Quarterly authorised deposit-taking institution property exposures statistics, all ADIs",
315
+ "licence": "CC BY 3.0 AU",
316
+ "attribution": "Australian Prudential Regulation Authority",
317
+ "change": {
318
+ "value": -0.4,
319
+ "unit": "percent",
320
+ "over": "year"
321
+ },
322
+ "limit": "One part of the commercial property total, not housing; deposit-takers reporting to APRA only.",
323
+ "sector": "commercial"
324
+ },
325
+ {
326
+ "id": "commercial_property_retail",
327
+ "name": "Commercial property: loans outstanding against retail property",
328
+ "geography": "Australia",
329
+ "value": 120.91,
330
+ "unit": "AUD billion",
331
+ "period": "2026-06",
332
+ "source": "APRA Quarterly authorised deposit-taking institution property exposures statistics, all ADIs",
333
+ "licence": "CC BY 3.0 AU",
334
+ "attribution": "Australian Prudential Regulation Authority",
335
+ "change": {
336
+ "value": 7.8,
337
+ "unit": "percent",
338
+ "over": "year"
339
+ },
340
+ "limit": "One part of the commercial property total, not housing; deposit-takers reporting to APRA only.",
341
+ "sector": "commercial"
342
+ },
343
+ {
344
+ "id": "commercial_property_industrial",
345
+ "name": "Commercial property: loans outstanding against industrial property",
346
+ "geography": "Australia",
347
+ "value": 97.77,
348
+ "unit": "AUD billion",
349
+ "period": "2026-06",
350
+ "source": "APRA Quarterly authorised deposit-taking institution property exposures statistics, all ADIs",
351
+ "licence": "CC BY 3.0 AU",
352
+ "attribution": "Australian Prudential Regulation Authority",
353
+ "change": {
354
+ "value": 10.0,
355
+ "unit": "percent",
356
+ "over": "year"
357
+ },
358
+ "limit": "One part of the commercial property total, not housing; deposit-takers reporting to APRA only.",
359
+ "sector": "commercial"
360
+ },
361
+ {
362
+ "id": "commercial_property_npl",
363
+ "name": "Commercial property: non-performing loans, share of loans outstanding",
364
+ "geography": "Australia",
365
+ "value": 0.56,
366
+ "unit": "percent",
367
+ "period": "2026-06",
368
+ "source": "APRA Quarterly authorised deposit-taking institution property exposures statistics, all ADIs",
369
+ "licence": "CC BY 3.0 AU",
370
+ "attribution": "Australian Prudential Regulation Authority",
371
+ "change": {
372
+ "value": -0.07,
373
+ "unit": "points",
374
+ "over": "quarter"
375
+ },
376
+ "limit": "Share of the commercial property loans outstanding that are non-performing, from APRA's two amounts; not the housing figure of the same name.",
377
+ "sector": "commercial"
378
+ },
289
379
  {
290
380
  "id": "approvals",
291
381
  "name": "Dwellings approved, seasonally adjusted",
@@ -307,14 +397,14 @@
307
397
  "id": "completions",
308
398
  "name": "Dwellings completed, seasonally adjusted",
309
399
  "geography": "NSW",
310
- "value": 10227.0,
400
+ "value": 13332.0,
311
401
  "unit": "dwellings per quarter",
312
- "period": "2026-03",
402
+ "period": "2026-06",
313
403
  "source": "ABS Building Activity, Australia (8752.0), Table 38: dwelling units completed by state, all types and sectors, quarterly, seasonally adjusted.",
314
404
  "licence": "CC BY 4.0",
315
405
  "attribution": "Based on Australian Bureau of Statistics data",
316
406
  "change": {
317
- "value": -4.8,
407
+ "value": 43.5,
318
408
  "unit": "percent",
319
409
  "over": "year"
320
410
  }
@@ -483,7 +573,7 @@
483
573
  ],
484
574
  "cannot_answer": [
485
575
  "What any individual home sold for, or what it rents for today: the NSW datasets that hold those are licensed for non-commercial use only.",
486
- "Rents for a suburb or a street outside Victoria: the ABS rents index is city-wide, and contributed NSW suburb rents are not yet collected. Victorian rents by suburb group are in https://tools.dwelldelta.com.au/market/vic-rents.json (Homes Victoria, CC BY 4.0).",
576
+ "Rents for a street, for a home of a given size, or for any area of South Australia, Tasmania, the ACT or the Northern Territory: the ABS rents index is city-wide. Median rents of new bonds, all dwellings together, are published by area for four states, each file with its own source, licence and limits and never to be pooled: Victoria by suburb group, https://tools.dwelldelta.com.au/market/vic-rents.json (Homes Victoria, CC BY 4.0); NSW by postcode, https://tools.dwelldelta.com.au/market/nsw-rents.json (NSW Department of Communities and Justice, CC BY 4.0); Queensland by suburb, https://tools.dwelldelta.com.au/market/qld-rents.json (Residential Tenancies Authority, CC BY 4.0); Western Australia by locality, https://tools.dwelldelta.com.au/market/wa-rents.json (calculated by DwellDelta from the Government of Western Australia's bond records, CC BY 4.0).",
487
577
  "Advice of any kind: every figure here is information, not financial or tenancy advice."
488
578
  ],
489
579
  "rules": "Every figure is observed data with its period and source; none is a forecast or advice."