Closed Trade Funding and Leverage
/hyperliquid/trades/contextReturns immutable funding and leverage context for one closed trade identified by the composite key from /hyperliquid/trades.
What to tell it
Say these in your message. Your AI agent fills them in when it runs the tool.
- AddressNeededWallet address: a 0x EVM address or an ENS name (e.g. vitalik.eth). Solana addresses are not supported.
- SymbolNeededHyperliquid perpetual market id, including a builder prefix for HIP-3 markets (for example xyz:GOLD).
- DirectionNeededOpening direction of the episode.One of long, short
- Open timeNeededEpisode open time, Unix seconds, copied from GET /hyperliquid/trades.
- Close timeNeededEpisode close time, Unix seconds, copied from GET /hyperliquid/trades.
Use it in chat
Paste this in chat with what you need, or type @ and pick it. Your AI agents also use it on their own when the work needs it.
@surf:/hyperliquid/trades/contextTopics
Derivatives & PerpsMore from Surf
All 105Bridge Protocol RankingList bridge protocols ranked by USD volume over a time range.2 credits a callToken DEX Trade HistoryReturns recent DEX swap events for a token contract address.4 credits a callKalshi TradesReturns individual trade records for a Kalshi market.4 credits a callClosed TradesReturns a wallet's closed round-trip trades — one row per open→close position lifecycle, with realized per-trade P&L (gross, net = gross −…4 credits a callExchange Trading PairsReturns trading pairs available on an exchange.1 credit a callToken Unlock ScheduleReturns token unlock time-series with cumulative amounts, allocation breakdowns, total supply denominator, and unlocked-supply percentage.2 credits a call