allIsolatedMarginUpdates

Stream all isolated margin updates.

New endpoint - this endpoint is not a part of original Hyperliquid API and is added by us for builder convenience.

Subscribe

{
    "method": "subscribe",
    "subscription": {
        "type": "allIsolatedMarginUpdates"
    }
}

Unsubscribe

{
    "method": "unsubscribe",
    "subscription": {
        "type": "allIsolatedMarginUpdates"
    }
}

Update data format

Updates are batched per block. There are two update types: isolated_margin and top_up_isolated_margin.

Reconnection Note: When reconnecting with a session, replay and live events may overlap. Deduplicate using (time, tx_index) - skip updates where this tuple is at or before your last processed update. See Session Management for details.

For cross/isolated leverage changes (updateLeverage action), see allLeverageUpdates.

Isolated margin update

Sent when a user adds or removes isolated margin on a position (updateIsolatedMargin action). Specifies the USDC delta.

Top-up isolated margin update

Sent when a user adjusts their isolated margin to reach a target leverage (topUpIsolatedOnlyMargin action). Unlike isolated_margin which specifies a USDC delta, this specifies the desired leverage directly.

Field reference

Field
Type
Description

update_type

string

"isolated_margin" or "top_up_isolated_margin"

time

number

Block timestamp (milliseconds since epoch)

user

string

User address (lowercase)

coin

string

Coin/market name (e.g. "ETH", "xyz:GOLD")

is_buy

bool

Side of the margin change (isolated_margin only)

ntli

string

Amount of margin added or removed (isolated_margin only)

target_leverage

string

Target leverage as float string (top_up_isolated_margin only)

tx_index

number

Transaction index within the block

Examples

Common errors

Last updated