For the complete documentation index, see llms.txt. This page is also available as Markdown.

userIsolatedMarginUpdates

Stream live isolated margin updates for specific users.

Every live data message includes both routing identifiers with the same value:

{"type": "userIsolatedMarginUpdates", "channel": "userIsolatedMarginUpdates"}

Other payload fields are omitted above. Existing clients may continue routing on either field.

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": "userIsolatedMarginUpdates",
        "addresses": ["0x742d35Cc6634C0532925a3b844Bc9e7595f7F2e2"]
    }
}

Unsubscribe

{
    "method": "unsubscribe",
    "subscription": {
        "type": "userIsolatedMarginUpdates",
        "addresses": ["0x742d35Cc6634C0532925a3b844Bc9e7595f7F2e2"]
    }
}

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 userLeverageUpdates.

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