Changelog
This page documents all notable changes to the Blocklens platform and API.
2026-05-17
Snapshot API
- SVG output is now a first-class citizen alongside PNG. The
POST /v1/chart/snapshotformatfield accepts"png","svg", or"json"; both GET and POST also honorAccept: image/svg+xml. - New route:
GET /v1/chart/renders/{render_id}.svg— rendered SVGs are persisted for 1 hour and re-fetchable by URL, mirroring the existing.pngbehavior. - SVG responses now include
X-Render-Idso the persistent URL can be reconstructed from a single render call. - PNG and SVG variants of the same chart are cached independently.
- Cycle performance overlays (
x_axis: "day_offset") now render X-axis tick labels as calendar dates from the latest cycle of the chosen family (e.g.Oct '25,Jan '26, … for ATH overlays anchored atcycle_ath_5→ 2025-10-06) instead ofDay 0,Day 90, … . Earlier cycles remain aligned on the same axis positions.
MCP Server
render_chart: theformatparameter enum is now"png" | "svg" | "json"(was"png" | "json"). Whenformat: "svg"is passed, the tool returns animage/svg+xmlcontent block and a/chart/renders/{id}.svgURL in the summary.
2026-04-02
Metrics & API
- Metric count expanded from 127 to 210+ active metrics (exchanges, derivatives, DAT, and more).
- New endpoint:
GET /v1/cycle-boundaries— Bitcoin halving cycle start/end dates and durations. - Metrics API now uses a registry-driven query builder for consistent response formatting.
Snapshot API
- Heatmap rendering: render distribution-based charts (e.g., Cost Basis Distribution) with configurable color scales (
viridis,plasma, etc.) and Y-axis scales. Includes color scale legend. - Cycle performance overlay charts:
x_axis: "day_offset"aligns all halving cycles to Day 0 for comparison. - New per-metric parameter:
show_in_legend— control whether individual metrics appear in the chart legend.
MCP Server
- New tool:
get_cycle_boundaries— query halving cycle dates directly from AI agents. render_chartnow supports heatmap rendering and cycle performance overlays.- Unified TypeScript codebase (
tools.ts) for all MCP tools. - Tool count: 18 → 19.
2025-09-25
- Initial setup of the
docs.blocklens.codocumentation site.