Coverage for src/copytrading_engine/shared/configuration_version.py: 100%
3 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-16 16:55 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-16 16:55 +0000
1"""The saved trading-configuration schema version, shared by trading and backup."""
3from typing import Literal
5# Bump on any change to the saved setup's shape, and ship the app's one-way upgrade from the
6# version before it (ADR-0013): a saved setup is the owner's data and is never thrown away.
7CONFIGURATION_VERSION: Literal[10] = 10
8# The oldest saved setup the app still upgrades; anything older predates upgrades.
9EARLIEST_UPGRADABLE_VERSION = 8