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.
Balance writes made through the wallet helpers (app.wallets.writes,
app.wallets.sandbox_trade) evict it after their transaction commits.
Other balance-only writes (e.g. the legacy POST /trade path) still
ride the TTL: a balance a few seconds behind is the accepted staleness
contract, and those paths bust the /me profile + portfolio caches
through invalidate_user_balance_caches.