PnL attribution
Realized PnL grouped by asset and side over a configurable period.
/networks/{network}/wallets/{address}/pnl/attributionRealized PnL grouped by asset and side from stored fill events. period accepts a day suffix such as 30d (default) or up to 365d. Items are sorted by absolute realized PnL descending so the biggest contributors appear first.
Network identifier. Only hyperliquid is supported.
Example: hyperliquid
Wallet address — 0x followed by 40 lowercase hex characters.
Example: 0x1111111111111111111111111111111111111111
Look-back window. Accepts Nd where N is 1–365. Defaults to 30d.
Example: 30d
Responses
200OK
Realized PnL broken down by asset and side.
Network identifier.
Wallet address.
Resolved look-back window in days.
Total realized PnL over the period.
Per-asset, per-side realized PnL, biggest first.
Asset symbol.
Position side — long or short.
Realized PnL for this asset/side.
Number of trades contributing.
400Bad Request
401Unauthorized
404Not Found
500Server Error
curl -sS "https://api.dexhunt.app/v1/networks/hyperliquid/wallets/0x1111111111111111111111111111111111111111/pnl/attribution?period=30d" \
-H "X-API-Key: hlsk_your_developer_key"{
"network": "hyperliquid",
"walletAddress": "0x1111111111111111111111111111111111111111",
"periodDays": 30,
"totalRealizedPnlUsd": "820000.12",
"items": [
{ "asset": "BTC", "side": "long", "realizedPnlUsd": "640000.00", "tradeCount": 18 },
{ "asset": "ETH", "side": "long", "realizedPnlUsd": "180000.12", "tradeCount": 32 }
]
}