Wallets
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). Wallet
balance/baseline/status mutations on this user (top-up webhook, MAIN
reset, archive, etc.) intentionally don’t bust this cache — the
short TTL is the staleness contract. If you need fresh-immediate
after a write, the writer hits the wallet directly via SQL.
GET
List My Wallets
Previous
Create WalletCreate a new SANDBOX wallet, gated by per-plan caps.
Rejects MAIN (auto-seeded), COMPETITION (runner-spawned), and
currently API as well — extra API wallets need per-API-key routing
to receive trades, which is a separate follow-up PR. The body of
this handler still contains the API code path so flipping the
rejection on becomes a one-line removal once routing lands.
Next
List My Wallets