List My Wallets
List the user’s wallets in display order (MAIN, SANDBOX, API, COMPETITION).
Includes ACTIVE, FROZEN, and ARCHIVED so the UI can render generation history. DELETED wallets are hidden.
Per-user 5s Redis cache (override via ME_CACHE_TTL_S env).
Creating, renaming, archiving or resetting a wallet through this router invalidates that cache before the response is returned, so a client that writes and immediately re-reads always sees its own write.
Mutations that only move money without changing the list shape (top-up
webhook, MAIN reset, trade settlement) still ride the TTL: a balance that
is a few seconds behind is the accepted staleness contract, and those
paths already bust the /me profile + portfolio caches through
invalidate_user_balance_caches.