Hyperliquid Funding Rate for One Closed Trade | Surf
Retrieve funding and leverage context for one closed trading episode. Returns funding PnL, funding coverage status and reported leverage context for one identified closed trading episode. Use one Toolmu account and a shared prepaid balance across available Tools. Pay per use; no separate supplier subscription is required. The current execution ceiling for this Tool is 0.0288 Toolmu credits per call. This is a maximum, not the settled charge. Before execution, get the current Tool contract and check availability, the latest maximumCredits, your balance and budget. Supplier response credits_used, when present, describes supplier API credits and is not the Toolmu customer charge.
Up to 0.0288 credits / call
The final charge is based on confirmed usage. Unused reserved credits return to your available balance.
Hyperliquid
Hyperliquid Funding Rate for One Closed Trade | Surf
Retrieve funding and leverage context for one closed trading episode. Returns funding PnL, funding coverage status and reported leverage context for one identified closed trading episode. Use one Toolmu account and a shared prepaid balance across available Tools. Pay per use; no separate supplier subscription is required. The current execution ceiling for this Tool is 0.0288 Toolmu credits per call. This is a maximum, not the settled charge. Before execution, get the current Tool contract and check availability, the latest maximumCredits, your balance and budget. Supplier response credits_used, when present, describes supplier API credits and is not the Toolmu customer charge.
You receive
Returns funding PnL, coverage status and leverage context for one closed trade. Use symbol, direction and open/close Unix seconds from closed trades. Interpret zero funding with its coverage status; reported leverage may differ from opening leverage.
Start with your task
Share [your Hyperliquid profile link] and describe [the closed trade you want checked], for example [the BTC trade I closed yesterday]. I’ll find the matching trade and check the funding fees paid or received while it was open, plus the leverage recorded for it.
Inputs & outputs
Inspect the current inputs, availability, and maximum charge before starting.
Input schema
Input schema
Field / Path
Type
Requirement
Meaning
queryParamsqueryParams
object
Required
Required fields
address, symbol, direction, open_time, close_time
symbolqueryParams.symbol
string
Required
Hyperliquid perpetual market id, including a builder prefix for HIP-3 markets (for example xyz:GOLD).
Minimum length
1
addressqueryParams.address
string
Required
Wallet address: a 0x EVM address or an ENS name (e.g. vitalik.eth). Solana addresses are not supported.
Minimum length
1
directionqueryParams.direction
string
Required
Opening direction of the episode.
Options
long, short
open_timequeryParams.open_time
integer
Required
Episode open time, Unix seconds, copied from GET /hyperliquid/trades.
Minimum
1
Maximum
9007199254740991
close_timequeryParams.close_time
integer
Required
Episode close time, Unix seconds, copied from GET /hyperliquid/trades.
Minimum
1
Maximum
9007199254740991
View raw JSON
{
"type": "object",
"required": [
"queryParams"
],
"properties": {
"queryParams": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"address",
"symbol",
"direction",
"open_time",
"close_time"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"symbol": {
"type": "string",
"minLength": 1,
"description": "Hyperliquid perpetual market id, including a builder prefix for HIP-3 markets (for example xyz:GOLD)."
},
"address": {
"type": "string",
"minLength": 1,
"description": "Wallet address: a 0x EVM address or an ENS name (e.g. vitalik.eth). Solana addresses are not supported."
},
"direction": {
"enum": [
"long",
"short"
],
"type": "string",
"description": "Opening direction of the episode."
},
"open_time": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "Episode open time, Unix seconds, copied from GET /hyperliquid/trades."
},
"close_time": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "Episode close time, Unix seconds, copied from GET /hyperliquid/trades."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
Result schema
Output fields have not been documented yet.
Additional notes
Retrieve funding and leverage context for one closed trading episode
How to use this Tool
Use the deployed input fields below. Required fields must be supplied; optional filters narrow the result.
queryParams.symbol (Required): Hyperliquid perpetual market id, including a builder prefix for HIP-3 markets (for example xyz:GOLD).
queryParams.address (Required): Wallet address: a 0x EVM address or an ENS name (e.g. vitalik.eth). Solana addresses are not supported.
queryParams.direction (Required): Opening direction of the episode.
queryParams.open_time (Required): Episode open time, Unix seconds, copied from GET /hyperliquid/trades.
queryParams.close_time (Required): Episode close time, Unix seconds, copied from GET /hyperliquid/trades.
What this Tool returns
Returns funding PnL, funding coverage status and reported leverage context for one identified closed trading episode.
Response fields and how to read them
The table follows the official response contract, including nested fields and useful response metadata. [] denotes an array item. Required means required within its parent object, not that a conditional parent always exists. A nullable type permits null; an optional field can be absent. Use the documented conditions below to distinguish missing, empty and zero values. Units and reporting windows apply only where explicitly documented.
Field, type and presence
Meaning and conditions
data.funding_pnl
number; Optional within parent; format: double
Funding paid/received during the episode, USD (positive = received). Omitted unless funding_status is complete.
data.funding_status
string; Required within parent; enum: ["complete", "partial", "unavailable"]
Whether funding_pnl is usable. complete includes a real zero; partial is reserved for incomplete attribution.
data.leverage
integer; Optional within parent; format: int64
Opening leverage multiplier; omitted because completed-trade semantics do not prove the opening value.
data.leverage_semantics
string; Optional within parent; enum: ["completed_trade_reported"]
The official contract declares this field but does not explain its meaning or units. Treat its interpretation as unverified; do not infer completeness or a unit from the field name.
data.leverage_type
string; Optional within parent; enum: ["cross", "isolated"]
Opening margin mode; omitted unless opening-time semantics are proven.
data.reported_leverage
integer; Optional within parent; format: int64
Leverage from the completed-trade record; not asserted to be the opening value.
data.reported_leverage_type
string; Optional within parent; enum: ["cross", "isolated"]
The official contract declares this field but does not explain its meaning or units. Treat its interpretation as unverified; do not infer completeness or a unit from the field name.
meta.cached
boolean; Required within parent
Whether this response was served from cache
meta.credits_used
integer; Required within parent; format: int64
Credits deducted for this request
meta.empty_reason
string; Optional within parent
Hint explaining why the data array is empty, when applicable
Coverage, units and freshness
Copy symbol, direction and open/close Unix seconds from the closed-trades response. A zero funding amount is meaningful only with its coverage status; reported leverage may differ from opening leverage.
Inspect any returned observation time, cache status, watermark, pagination and errors using their documented meanings. A successful request alone does not establish complete coverage. Where no freshness or completeness guarantee is documented, treat it as unknown. Saved Examples are historical and viewing them does not refresh data or execute a new call.
Data source and references
Surf supplies this endpoint through its Data API. Response contract and deployed Tool inputs reviewed on 2026-10-03 against official OpenAPI v0.2.102. This is a contract review date, not a data observation time. Coverage depends on the selected endpoint and request.
Use one Toolmu account and a shared prepaid balance across available Tools. Pay per use; no separate supplier subscription is required. The current execution ceiling for this Tool is 0.0288 Toolmu credits per call. This is a maximum, not the settled charge. Before execution, get the current Tool contract and check availability, the latest maximumCredits, your balance and budget. Supplier response credits_used, when present, describes supplier API credits and is not the Toolmu customer charge.
Example request: [Show the ETH trade I closed last Tuesday]. Hyperliquid profile: [profile link].
Share [your Hyperliquid profile link] and describe [the closed trade you want checked], for example [the BTC trade I closed yesterday]. I’ll find the matching trade and check the funding fees paid or received while it was open, plus the leverage recorded for it.
Check a trade’s fees and leverage
Example request: [Explain the funding fees and reported leverage for my last closed SOL trade]. Hyperliquid profile: [profile link].
Questions about this tool.
Inputs, results and details to know before running it.
Share a public Hyperliquid profile link and describe the trade by coin and approximate closing date, for example [the BTC trade I closed yesterday]. If the link does not identify the account, I will ask for its public wallet address. You do not need to find trade codes or copy specially formatted times.
Returns funding PnL, funding coverage status and reported leverage context for one identified closed trading episode.
Copy symbol, direction and open/close Unix seconds from the closed-trades response. A zero funding amount is meaningful only with its coverage status; reported leverage may differ from opening leverage.
Use one Toolmu account and a shared prepaid balance across available Tools. Pay per use; no separate supplier subscription is required. The current execution ceiling for this Tool is 0.0288 Toolmu credits per call. This is a maximum, not the settled charge. Before execution, get the current Tool contract and check availability, the latest maximumCredits, your balance and budget. Supplier response credits_used, when present, describes supplier API credits and is not the Toolmu customer charge.
Ask your agent to Retrieve funding and leverage context for one closed trading episode. Provide the required inputs above. If Toolmu is already connected, reuse that connection; otherwise use the setup instructions on this page. Before a paid execution, the agent must read the current Tool contract and check availability, the credit ceiling, balance, budget and your authorization. It should then execute the Tool and explain the returned fields and limitations.
Inspect any returned observation time, cache status, watermark, pagination and errors using their documented meanings. A successful request alone does not establish complete coverage. Where no freshness or completeness guarantee is documented, treat it as unknown. Saved Examples are historical and viewing them does not refresh data or execute a new call.