{
  "notice": "This is reference data published by Crypter. It does not ask any software to act.\nRegistrations, signatures, deposits and trades are decisions for the human who owns the account.\nNothing here guarantees airdrops, points, or profits. Crypter earns referral fees where a referral block is present.",
  "id": "perp-dex-oracle-mark-price-design",
  "type": "guide",
  "title": "Perp DEX oracle prices, marks and execution prices",
  "summary": "Keep oracle inputs, mark-price margin checks and executable prices separate when comparing the documented pricing rules on Hyperliquid and Lighter.",
  "answer": "Hyperliquid and Lighter use a mark price for margin checks. Hyperliquid’s funding calculation uses a spot oracle input. Neither the mark nor the oracle price establishes the fill or spread available for a particular order.",
  "next_decision": "Log the reference price with its source and timestamp, and keep the executable quote and funding event separate. See the liquidation-trigger guide when the question is which account value triggers a liquidation.",
  "diagnostic_goal": "cost",
  "tool": {
    "kind": "evidence_table",
    "venues": [
      {
        "venue": "hyperliquid",
        "refs": [
          {
            "venue": "hyperliquid",
            "path": "prerequisites.liquidation",
            "pin": "sha256:a9ac85b2ca3ec5de"
          },
          {
            "venue": "hyperliquid",
            "path": "costs.funding",
            "pin": "sha256:06c1e593097afd5d"
          },
          {
            "venue": "hyperliquid",
            "path": "costs.spread",
            "pin": "sha256:c490acbf88cb76b8"
          }
        ]
      },
      {
        "venue": "lighter",
        "refs": [
          {
            "venue": "lighter",
            "path": "prerequisites.liquidation",
            "pin": "sha256:562f272a128f5f92"
          },
          {
            "venue": "lighter",
            "path": "costs.funding",
            "pin": "sha256:a2b3a8a4d8e72f49"
          },
          {
            "venue": "lighter",
            "path": "costs.spread",
            "pin": "sha256:89d0557cf3f17039"
          }
        ]
      }
    ]
  },
  "sections": [
    {
      "id": "reference-input",
      "heading": "Use the reference that answers the question",
      "body": "Maintenance margin and funding are different calculations. Check the source for the price input and the funding interval before comparing them.",
      "fact_refs": [
        {
          "venue": "hyperliquid",
          "path": "prerequisites.liquidation",
          "pin": "sha256:a9ac85b2ca3ec5de"
        },
        {
          "venue": "hyperliquid",
          "path": "costs.funding",
          "pin": "sha256:06c1e593097afd5d"
        },
        {
          "venue": "lighter",
          "path": "prerequisites.liquidation",
          "pin": "sha256:562f272a128f5f92"
        },
        {
          "venue": "lighter",
          "path": "costs.funding",
          "pin": "sha256:a2b3a8a4d8e72f49"
        }
      ]
    },
    {
      "id": "execution",
      "heading": "Keep execution separate",
      "body": "Compare quotes for the same side and size. An undocumented spread is not a zero spread, and a displayed mark is not a quote for the order.",
      "fact_refs": [
        {
          "venue": "hyperliquid",
          "path": "costs.spread",
          "pin": "sha256:c490acbf88cb76b8"
        },
        {
          "venue": "lighter",
          "path": "costs.spread",
          "pin": "sha256:89d0557cf3f17039"
        }
      ]
    }
  ],
  "limits": "The evidence table does not reproduce either venue’s complete oracle or mark formula and does not estimate the live spread or fill price.",
  "related": [
    {
      "type": "venue",
      "id": "hyperliquid"
    },
    {
      "type": "venue",
      "id": "lighter"
    }
  ],
  "related_guides": [
    "perp-dex-liquidation-trigger"
  ],
  "sources": [
    "hl-liquidations",
    "hl-margin",
    "hl-funding",
    "lighter-liquidations",
    "lighter-funding-rates",
    "hl-order-types",
    "lighter-orders"
  ],
  "checked_at": "2026-12-05",
  "updated_at": "2026-12-05",
  "review_by": "2027-03-05",
  "guarantee": "none",
  "stale": false,
  "stale_reasons": [],
  "resolved_facts": {
    "hyperliquid#prerequisites.liquidation": {
      "venue": "hyperliquid",
      "venue_name": "Hyperliquid",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.liquidation",
      "record": "/en/venues/hyperliquid",
      "pin_ok": true,
      "fact": {
        "value": "Hyperliquid uses mark price, not the last fill, to measure equity against maintenance margin. Cross positions share collateral. Isolated positions use assigned margin.",
        "basis": "official",
        "source_ids": [
          "hl-liquidations",
          "hl-margin"
        ],
        "checked_at": "2026-12-04"
      }
    },
    "hyperliquid#costs.funding": {
      "venue": "hyperliquid",
      "venue_name": "Hyperliquid",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "costs.funding",
      "record": "/en/venues/hyperliquid",
      "pin_ok": true,
      "fact": {
        "value": null,
        "basis": "unknown",
        "source_ids": [
          "hl-funding"
        ],
        "checked_at": "2026-12-04",
        "review_status": "variable",
        "note": "Funding is paid hourly even though the formula is expressed on an eight-hour basis. The payment uses position size, spot oracle price and the applicable rate, not the last trade price.",
        "unit": "percent of position notional over the funding interval"
      }
    },
    "hyperliquid#costs.spread": {
      "venue": "hyperliquid",
      "venue_name": "Hyperliquid",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "costs.spread",
      "record": "/en/venues/hyperliquid",
      "pin_ok": true,
      "fact": {
        "value": null,
        "basis": "unknown",
        "source_ids": [
          "hl-order-types"
        ],
        "checked_at": "2026-11-12",
        "unit": "percent of notional; quote dependent",
        "review_status": "variable",
        "note": "Market execution uses the order book; the spread and slippage depend on market, size and time. A limit price bounds execution price but does not ensure a fill."
      }
    },
    "lighter#prerequisites.liquidation": {
      "venue": "lighter",
      "venue_name": "Lighter",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.liquidation",
      "record": "/en/venues/lighter",
      "pin_ok": true,
      "fact": {
        "value": "Lighter uses mark prices for account value and margin requirements. Falling below maintenance margin can trigger partial liquidation. Falling below close-out margin reaches the full-liquidation stage. Margin fractions vary by market.",
        "basis": "official",
        "source_ids": [
          "lighter-liquidations"
        ],
        "checked_at": "2026-12-04"
      }
    },
    "lighter#costs.funding": {
      "venue": "lighter",
      "venue_name": "Lighter",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "costs.funding",
      "record": "/en/venues/lighter",
      "pin_ok": true,
      "fact": {
        "value": null,
        "basis": "unknown",
        "source_ids": [
          "lighter-funding-rates"
        ],
        "checked_at": "2026-12-04",
        "review_status": "variable",
        "note": "Funding payments settle at each hour mark. A positive rate means longs pay shorts, and a negative rate reverses that direction.",
        "unit": "percent of position notional over the funding interval"
      }
    },
    "lighter#costs.spread": {
      "venue": "lighter",
      "venue_name": "Lighter",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "costs.spread",
      "record": "/en/venues/lighter",
      "pin_ok": true,
      "fact": {
        "value": null,
        "basis": "unknown",
        "source_ids": [
          "lighter-orders"
        ],
        "checked_at": "2026-11-12",
        "unit": "percent of notional; quote dependent",
        "review_status": "variable",
        "note": "A market order takes the best available order-book prices and can slip with liquidity or volatility. Limit/post-only instructions constrain execution but cannot make a fixed spread available."
      }
    }
  },
  "fact_sources": [
    "hl-liquidations",
    "hl-margin",
    "hl-funding",
    "hl-order-types",
    "lighter-liquidations",
    "lighter-funding-rates",
    "lighter-orders"
  ]
}
