Skip to main content
Hyperliquid
Returns leverage, mark price, estimated buy/sell capacity, and isolated-market permissions for one user and perpetual market. This is an unsigned snapshot; it does not reserve capacity.

Endpoint

Request Body

Response

The HTTP response has no channel envelope or isSnapshot field. Subscribe to Market Trading Updates for the same state over WebSocket.

Fields

Assigned HIP-3 Markets

For markets whose metadata has hip3.executionPolicy: "exclusive_subaccount_v1", the response includes isolated and uses leverage.type: "isolated". Send the qualified market name, for example "idx:IDX0", as coin. leverage.value is the observed leverage. leverage.rawUsd is the scope’s realized USDC support, formatted to two decimals, or "0.00" when no scope exists. The maxTradeSzs and availableToTrade fields remain estimates; use isolated.permissions to determine which actions are currently allowed. Position Opening Capacity provides an on-demand execution-capacity check before signing. A successful read does not reserve capacity or guarantee order acceptance.

isolated.leverage

Display pending ?? observed as the selected leverage. Do not treat a pending selection as confirmed leverage. Use Update Leverage to submit a change.

isolated.permissions

Enable an action only when its corresponding permission is true. Denial codes are market_halted, market_reduce_only, market_execution_not_active, capacity_unavailable, operation_pending, insufficient_margin, account_restricted, and scope_resolving. Display denial.message when a code is unfamiliar. A reduce-only market may still allow reductions; a halted market or a resolving scope can block them.

isolated.scope

This object is omitted when the user has no isolated scope on the market. USDC support values use two decimal places. Support, pending support, and pending release are separate amounts. Do not subtract them again from the effective USDC balance returned by assets.

isolated.operation

This optional object describes a live operation: Use Update Isolated Margin to request a margin change. For a returned operationId, Isolated Operation Status supplies the durable result after a live operation disappears from this response. The current projector omits confirmed or failed operations once they are no longer live. A committed operation may already have been sent to the venue; ambiguous means its outcome is still uncertain. Read the permissions again before sending another action.

Errors

  • 400: missing or malformed user / coin, or an unknown perpetual market. Spot pairs and prediction-market outcomes are not accepted as coin.
  • 503: the service, account state, mark price, or required margin prices are unavailable. The response includes a three-second Retry-After hint.
Capacity and margin estimates can change before an order is accepted. Use the current permissions and submit the signed action for final validation.