Closed Trades

surf.hyperliquid.tradesRaw endpoint · live
Add to your agent

Returns a wallet's closed round-trip trades — one row per open→close position lifecycle, with realized per-trade P&L (gross, net = gross − fees, fees, and funding_pnl as a separate field that net EXCLUDES), entry/exit price, size, and hold time.

Provider

Surfyour key

Runs on your own Surf key: add it under Provider keys in the app. Opentools doesn't charge for these runs.

Use it from your agent

View schema →

Raw endpoints take the provider's own request: body, queryParams and pathParams, as the provider documents them. Agents find it with search_tools once Opentools is connected.

curl
curl https://opentools.opentools.workers.dev/v1/jobs \
  -H "Authorization: Bearer $OPENTOOLS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"surf.hyperliquid.trades","input":{"body":{}}}'

More from Surf