Project document

inputs/COMPASS.md

COMPASS: FxRates

Compass

Build a currency rates service, an executable named fxrates at the application root, as described in sources/INSTRUCTIONS.md. A command line loads the ECB euro reference rate history into SQLite, and a FastAPI JSON API serves the rates on a date, conversions between any two currencies, and a currency's history with minimum, maximum, and mean.

Correctness is measured by sources/run.sh: it loads the supplied ECB files, starts the server on a free local port, and makes 35 checks of command output and HTTP status and JSON body. The goal is every check passing.

Constraints

fxrates serve runs the server in the foreground and stops cleanly on SIGTERM.

Guardrails

database only through fxrates load or fxrates fetch.

Verification Protocol

Story kindCommandAsserts
Every behavioral storysh bin/test.shexit 0
Terminal story (once, last)sh sources/run.shexit 0