Get started
Building a profile
A profile is the account (GET /profiles/{handle}: name, photo, followers) plus its trading, read straight from Hyperliquid's public info API for wallet:
| Section | Hyperliquid request |
|---|---|
| Chart, volume | portfolio (day / week / month / allTime: accountValueHistory, pnlHistory, vlm) |
| Open predictions | spotClearinghouseState: balances whose coin starts with + (+123450 = outcome coin #123450) |
| Orders | frontendOpenOrders (origSz minus sz = filled) |
| Settled | userFills with dir: "Settlement": px 1 = won, 0 = lost; closedPnl is the profit |
| Activity | userFills, historicalOrders, userNonFundingLedgerUpdates (send in / out, deposit) |
Coin #N is outcome floor(N / 10), side N % 10 (0 = Yes / the named option, 1 = No / against it). Hyperliquid drops a market from outcomeMeta once it settles; GET /outcomes?ids= still returns it, in the same shapes.
Your own profile: POST /profile/edit changes the display name and Slay ID (check GET /handles/{handle} first); POST /profile/photo sets the photo.