interface AccountState {
    accounts: readonly TradingAccount[];
    generation: number;
    mode: TradeMode;
    reason?: string;
    selectedId: null | string;
    snapshot: null | AccountSnapshot;
    status: AccountStatus;
}

Properties

accounts: readonly TradingAccount[]
generation: number

Bumped by every selection, refresh and disconnect, so a reader can tell epochs apart.

mode: TradeMode
reason?: string
selectedId: null | string
snapshot: null | AccountSnapshot