Skip to content

Expose version and mock_mode in /health response #3

@whtis

Description

@whtis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions