# Licenses

This repository combines two licenses, depending on what you use:

## Repository structure, scripts, README, workflows

**CC0 1.0 Universal — Public Domain Dedication**

You may copy, modify, distribute, and use the scaffold code (the `scripts/` directory, GitHub Actions workflows, README templates, and the `datapackage.json` schema) without permission or attribution.

https://creativecommons.org/publicdomain/zero/1.0/

## Data files in `datasets/*/data.csv`

**Creative Commons Attribution 4.0 International — CC BY 4.0**

You may share and adapt the data for any purpose, including commercially, provided you give appropriate credit.

How to attribute:

> Data via [CalcFi](https://calcfi.app), sourced from [primary source named in each dataset's README]. CC BY 4.0.

https://creativecommons.org/licenses/by/4.0/

### Primary source terms also apply

The data in this repository is mirrored verbatim from official primary sources (FRED, BLS, BEA, US Treasury, FDIC, EIA, Federal Reserve H.10, CoinGecko, World Bank, IMF). Most of these are released into the public domain or under permissive open-data terms, but you should consult each primary source's terms-of-use directly when redistributing in your own products. The canonical primary-source URL for every dataset is recorded in:

- The provenance header lines (`# Source:`, `# Primary URL:`) at the top of each `data.csv`
- The `sources[]` array in each `datapackage.json`
- The "Source + provenance" section of each dataset's `README.md`
