Compare the RBA cash rate to CPI over 25 years
Pull both series at once, align by quarter, and chart the gap. Shows real interest rate over time.
Steps
- 1Call /v1/economic-dashboard.
- 2Iterate timeline.
- 3Plot cash_rate minus cpi_yoy.
Code
cURL
curl https://api.ausdata.io/v1/economic-dashboard \
-H "Authorization: Bearer YOUR_KEY"Python
import requests
r = requests.get(
"https://api.ausdata.io/v1/economic-dashboard",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())JavaScript
const r = await fetch("https://api.ausdata.io/v1/economic-dashboard", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());Watch out for
- Cash rate is monthly, CPI is quarterly. Resample before joining.
Related
Try it now
500 free calls per month. No credit card.
Get a free API key