{"database": "calcfi-open-data", "private": false, "path": "/calcfi-open-data", "size": 15597568, "tables": [{"name": "observations", "columns": ["slug", "date", "value", "unit"], "primary_keys": ["slug", "date"], "count": 117956, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": []}, "private": false}, {"name": "sources", "columns": ["slug", "title", "source", "primary_url", "canonical_url", "license", "retrieved", "row_count"], "primary_keys": ["slug"], "count": 34, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": []}, "private": false}], "hidden_count": 0, "views": [], "queries": [{"sql": "SELECT s.title, s.slug, s.source, s.row_count, s.retrieved\nFROM sources s\nORDER BY s.row_count DESC\n", "title": "Series coverage with row counts and provenance", "description": "Compact overview of every series available in this database, ranked by historical coverage.", "name": "series_coverage", "private": false}, {"sql": "SELECT s.title, o.date, o.value, o.unit\nFROM observations o\nJOIN sources s ON s.slug = o.slug\nWHERE (o.slug, o.date) IN (\n  SELECT slug, MAX(date) FROM observations GROUP BY slug\n)\nORDER BY s.title\n", "title": "Latest value per series", "description": "The most recent observation for every series, with the human title.", "name": "latest_per_series", "private": false}, {"sql": "SELECT m.date AS week,\n       m.value AS mortgage_30y,\n       t.value AS treasury_10y,\n       m.value - t.value AS spread_pp\nFROM observations m\nJOIN observations t\n  ON t.slug = '10-year-treasury'\n AND t.date <= m.date\n AND t.date >= date(m.date, '-7 days')\nWHERE m.slug = '30-year-fixed'\nGROUP BY m.date\nORDER BY m.date DESC\nLIMIT 200\n", "title": "30Y mortgage vs 10Y Treasury weekly spread", "description": "Recent 200 weekly mortgage-Treasury spread observations, computed live from the joined series.", "name": "mortgage_treasury_spread", "private": false}], "allow_execute_sql": true, "query_ms": 4.665161000048101, "source": "CalcFi Open Data \u00e2\u20ac\u201d primary-source mirror", "source_url": "https://calcfi.app/developers", "license": "CC BY 4.0", "license_url": "https://creativecommons.org/licenses/by/4.0/"}