Books and agents
How coins share HyperCore accounts, and why the keys that trade can't withdraw.
One book per strategy, not per coin
A HyperCore account for every coin would not scale. Elev runs books: one carry book for every coin in Earn funding, and one book per market for coins taking positions (for example bet:HYPE or bet:xyz:NVDA).
Each coin keeps its own ledger inside its book: what it deposited, its position size and entry, its margin, what it realised and what it sent home. A coin's numbers on its page come from its ledger and the live mark price, not from the book as a whole.
Netting
When one coin is long HYPE and another is short HYPE, the HYPE book only holds the difference. Each coin's ledger still carries its own full position and its own result, but the book pays trading fees on far less.
Trade-only agents
Each book's account approves an API agent key. HyperCore itself enforces that an agent can place and cancel orders and can never withdraw or transfer funds. The keeper trades with the agent key only. Elysium's upgrade uses exactly this model for contracts: a contract binds a HyperCore account and a trade-only agent signs its orders.
On every price tick
Hyperliquid's mark prices arrive on one websocket. On every tick the keeper re-marks each coin's ledger, applies its rules (take-profit slices, stop), and sends only the net change of each book to HyperCore.