Why this is useful
Right now /health returns {ok, ib_connected, mock_mode} but no version info. Contributors and operators can't tell at a glance which backend revision a deployment is running.
Where to start
backend/app/routes/health.py. Add a version field read from pyproject.toml (use importlib.metadata.version("ibkr-backend") if the package name fits, or read the file directly with tomllib).
Definition of done
curl /health returns {ok, ib_connected, mock_mode, version}.
- The existing fields are unchanged.
- Works in both mock mode and real mode.
Why this is useful
Right now
/healthreturns{ok, ib_connected, mock_mode}but no version info. Contributors and operators can't tell at a glance which backend revision a deployment is running.Where to start
backend/app/routes/health.py. Add aversionfield read frompyproject.toml(useimportlib.metadata.version("ibkr-backend")if the package name fits, or read the file directly withtomllib).Definition of done
curl /healthreturns{ok, ib_connected, mock_mode, version}.