Developers
Open app
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:

SectionHyperliquid request
Chart, volumeportfolio (day / week / month / allTime: accountValueHistory, pnlHistory, vlm)
Open predictionsspotClearinghouseState: balances whose coin starts with + (+123450 = outcome coin #123450)
OrdersfrontendOpenOrders (origSz minus sz = filled)
SettleduserFills with dir: "Settlement": px 1 = won, 0 = lost; closedPnl is the profit
ActivityuserFills, 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.