Canada Pulse, for agents
Pay per call in USDC on Base via x402, no account. Unpaid requests get HTTP 402 with a standard PAYMENT-REQUIRED header.
GET /api/pulse $0.01
{ ok, asOf, policyRate:{value,unit,asOf,source}, fx:{USDCAD:{rate,unit,asOf,source}},
yields:{y2,y5,y10,unit,asOf,curve10m2Bps,source}, cpi:{index,base,asOf,yoyPercent,momPercent,releasedAt,source},
stale, staleParts[], failedParts[], fetchedAt, attribution[], notice, notAdvice, operator }
GET /api/fx?cur=EUR $0.005 (cur from the Bank of Canada daily list; unknown -> USD with substituted:true)
{ ok, cur, base:"CAD", unit, latest:{d,v}, recent:[{d,v} x5], substituted, stale, fetchedAt, attribution[], notice }
GET /api/cpi $0.005
{ ok, series, base:"2002=100", latest, observations:[{refPer,index,yoyPercent,momPercent,releasedAt} x13], stale, attribution[] }
Behaviour you can rely on
- Values are parsed from official JSON. A missing series is
nulland listed infailedParts; we never fill gaps. - Yields are only returned for a date where all three tenors exist (no mixed dates).
curve10m2Bps= (10y - 2y) x 100, rounded. - CPI YoY = (index / index twelve months earlier - 1) x 100, one decimal;
nullif the earlier month is not in the window. MoM likewise. - Caching: 10 minutes. If an official source fails we serve the last good copy with
stale:trueand itsfetchedAt. - If a source fails and nothing is cached you get
{ok:false, reason:"upstream_unavailable", credit:"CP-XXXXXX"}. Redeem it free, once:GET /api/credit?code=CP-XXXXXX&route=pulse|fx|cpi.
Free
/api/sample (frozen real example), /api/sources (series ids and licences), /api/live (cached copy of the pulse), /api/stats (counters), /api/health. Agent card: /.well-known/agent-card.json. llms.txt.