ToolAssay

Add or remove isolated margin for a perp asset

Add or remove isolated margin for a perp asset. ntli is a signed integer in millionths of USD: 1000000 adds 1 USD; -1000000 removes 1 USD. isBuy defaults to true. Sign and submit unchanged to the returned submitPath (unpaid). Errors: 400 invalid input; execution may return 422 exchange rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".

Not tested: has real-world effectsour last check, 2026-11-27
0 of 0checks answered this week
n/amedian answer time
$0.001listed price per call
n/aprice it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://chainhilt.ai/api/v1/perp/hyperliquid/isolated-margin/preview

CategoryCode and developer
Provider hostchainhilt.ai
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days20 from 4 payers (the provider's figure, not ours)

Our checks, last 30 days

We never call tools that send, buy, move money or file anything, not even without paying.

Example input (from the provider)

{
  "body": {
    "action": {
      "asset": 0,
      "isBuy": true,
      "ntli": 1000000,
      "type": "updateIsolatedMargin"
    },
    "nonce": 1710000000000
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "accountAddress": {
              "description": "Signing account's address, returned as response metadata; not part of the signed action.",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "action": {
              "additionalProperties": false,
              "description": "Isolated margin update action.",
              "properties": {
                "asset": {
                  "description": "Perp asset ID",
                  "minimum": 0,
                  "type": "integer"
                },
                "isBuy": {
                  "const": true,
                  "default": true,
                  "description": "Always true; Hyperliquid ignores it until hedge mode exists.",
                  "type": "boolean"
                },
                "ntli": {
                  "description": "Signed margin delta in millionths of USD",
                  "type": "integer"
                },
                "type": {
                  "const": "updateIsolatedMargin",
                  "description": "Always \"updateIsolatedMargin\".",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "asset",
                "ntli"
              ],
              "type": "object"
            },
            "expiresAfter": {
              "description": "Millisecond timestamp after which Hyperliquid rejects the action. Signed with the action.",
              "minimum": 0,
              "type": "integer"
            },
            "nonce": {
              "description": "Action nonce in milliseconds since the epoch; defaults to the current time.",
              "minimum": 0,
              "type": "integer"
            },
            "vaultAddress": {
              "description": "Vault or subaccount to act for; omit to act for the signer. Signed with the action.",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          },
          "required": [
            "action"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON