{
  "tool_id": "art-213-perp-liquidation-calculator",
  "note": "Hyperliquid isolated long AMBER, dYdX cross short GREEN with portfolio offset, empty",
  "vectors": [
    {
      "name": "hyperliquid_isolated_long_amber",
      "policy_parameters": {
        "venue": "hyperliquid",
        "side": "long",
        "mode": "isolated",
        "leverage": 5,
        "entry_price": 50000,
        "mark_price": 48000,
        "position_size": 1
      },
      "output_payload": {
        "venue": "hyperliquid",
        "mode": "isolated",
        "side": "long",
        "leverage": 5,
        "entry_price": 50000,
        "mark_price": 48000,
        "position_size": 1,
        "notional": 50000,
        "imr_pct": 20,
        "mmr_pct": 10,
        "initial_margin": 10000,
        "maintenance_threshold": 5000,
        "unrealized_pnl": -2000,
        "margin_balance": 8000,
        "buffer": 3000,
        "buffer_pct": 60,
        "liq_price": 45000,
        "distance_to_liq_pct": 6.25,
        "health": "AMBER",
        "cross_margin_efficiency": null,
        "portfolio_margin_note": null,
        "mark_price_note": "Liquidation is triggered at the mark price (not last-traded). On Hyperliquid, mark = median(spot, bid, ask). Divergence from entry can cause liquidation before the price you see on charts.",
        "disclaimer": "Not financial advice. Liquidation parameters vary by venue, tier, and market conditions. Verify MMR tiers and mark-price rules with your venue before trading. For informational purposes only."
      },
      "golden_hash": "077c0d03212403b499a3d47fadf4e2d897143142d9c7671a9a58a4e7b93ebe7e"
    },
    {
      "name": "dydx_cross_short_green_portfolio_offset",
      "policy_parameters": {
        "venue": "dydx_v4",
        "side": "short",
        "mode": "cross",
        "leverage": 10,
        "entry_price": 3000,
        "mark_price": 3100,
        "position_size": 2,
        "spot_offset_usd": 5000,
        "correlation": 0.85
      },
      "output_payload": {
        "venue": "dydx_v4",
        "mode": "cross",
        "side": "short",
        "leverage": 10,
        "entry_price": 3000,
        "mark_price": 3100,
        "position_size": 2,
        "notional": 6000,
        "imr_pct": 10,
        "mmr_pct": 3,
        "initial_margin": 600,
        "maintenance_threshold": 180,
        "unrealized_pnl": -200,
        "margin_balance": 400,
        "buffer": 220,
        "buffer_pct": 122.2222,
        "liq_price": 3210,
        "distance_to_liq_pct": 3.5484,
        "health": "GREEN",
        "cross_margin_efficiency": {
          "spot_offset_usd": 5000,
          "correlation": 0.85,
          "hedge_offset": 4250,
          "effective_margin": 4850,
          "effective_buffer": 4470
        },
        "portfolio_margin_note": "Cross-margin: account-level liquidation when account_value < sum(notional_i * mmr_i). Leverage sets collateral drawn, not the liquidation trigger.",
        "mark_price_note": "Liquidation is triggered at the mark price (not last-traded). On Hyperliquid, mark = median(spot, bid, ask). Divergence from entry can cause liquidation before the price you see on charts.",
        "disclaimer": "Not financial advice. Liquidation parameters vary by venue, tier, and market conditions. Verify MMR tiers and mark-price rules with your venue before trading. For informational purposes only."
      },
      "golden_hash": "9e089d1e89129fe01b37e6911f11348f38ca7dfabdc9e269bfb06c2c27811b24"
    },
    {
      "name": "empty_input",
      "policy_parameters": {},
      "output_payload": {
        "venue": "hyperliquid",
        "mode": "isolated",
        "side": "long",
        "leverage": 5,
        "entry_price": 50000,
        "mark_price": 50000,
        "position_size": 1,
        "notional": 50000,
        "imr_pct": 20,
        "mmr_pct": 10,
        "initial_margin": 10000,
        "maintenance_threshold": 5000,
        "unrealized_pnl": 0,
        "margin_balance": 10000,
        "buffer": 5000,
        "buffer_pct": 100,
        "liq_price": 45000,
        "distance_to_liq_pct": 10,
        "health": "AMBER",
        "cross_margin_efficiency": null,
        "portfolio_margin_note": null,
        "mark_price_note": "Liquidation is triggered at the mark price (not last-traded). On Hyperliquid, mark = median(spot, bid, ask). Divergence from entry can cause liquidation before the price you see on charts.",
        "disclaimer": "Not financial advice. Liquidation parameters vary by venue, tier, and market conditions. Verify MMR tiers and mark-price rules with your venue before trading. For informational purposes only."
      },
      "golden_hash": "932a88f38b38762287d9f52eedfe6b7670643c72b8d0cf5e5450e545d9ae22d1"
    }
  ]
}
