Closed Trade Funding and Leverage
GET
/gateway/v1/hyperliquid/trades/contextReturns immutable funding and leverage context for one closed trade identified by the composite key from `/hyperliquid/trades`. Use this for a selected trade detail instead of enriching every history row. `funding_status=complete` distinguishes a real zero from unavailable historical data; leverage fields are omitted when the completed-trade source has no value.
Query Parameters
addressstringrequired
Wallet address: a 0x EVM address or an ENS name (e.g. vitalik.eth). Solana addresses are not supported.
symbolstringrequired
Hyperliquid perpetual market id, including a builder prefix for HIP-3 markets (for example xyz:GOLD).
directionenum<string>required
Opening direction of the episode.
Available options:
longshortopen_timeintegerrequired
Episode open time, Unix seconds, copied from GET /hyperliquid/trades.
close_timeintegerrequired
Episode close time, Unix seconds, copied from GET /hyperliquid/trades.
Closed Trade Funding and Leverage
OK