{
      "tool_id": "art-214-perp-position-lifecycle",
      "tool_version": "1.0.0",
      "display_name": "Perp Position Lifecycle",
      "mcp_name": "model_perp_position",
      "mandate_type": "derivatives_margin_health",
      "wave": 36,
      "gpu": false,
      "url": "https://ainumbers.co/chaingraph/art-214-perp-position-lifecycle.html",
      "description": "Models a full perp position from open to close: liquidation price, realized PnL, cumulative funding over the holding period, taker and maker fees, and margin return. Hyperliquid hourly funding cadence default. Static-string timestamps. Not financial advice.",
      "input_schema_ref": "chaingraph/art-214-perp-position-lifecycle.html#manifest",
      "consumes": [
        "art-213-perp-liquidation-calculator"
      ],
      "feeds": [],
      "status": "live",
      "conformance_fixtures": true,
      "compute_capability": "server",
      "compute_images": [{"system":"sha256-source","image_id":"sha256:aa963eb24ee88e725b08bbaaf443a0f756a8d42eb469f9c1fe1e68ef75dc4cf6","valid_from":"2026-07-10"},{"system":"risc0","image_id":"sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6","valid_from":"2026-07-04"}],
      "export_capability": [
        "json"
      ],
      "compute_proof_ready": "ready",
      "compute_proof": {
        "type": "ZkVmReceipt",
        "system": "risc0",
        "receiptFormat": "groth16-bn254",
        "imageId": "sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6",
        "seal": "MBWX0RF3bD9kwLkUkq2QDofeMBa55oxnr1JWqvKHqc0Fo/Mn9ynj9CX2RP+K6AJfXcBjCkJPHvCaiONf9iLkFAlcbnGWEbgPE+hArzi5vuxS0CpMctGXb8S2U1HhSTiwDrO20Rc2vW1h1nYThTroz0GxkMRm05YVSXZL3IYtvOUDoSYcSNJrVMKsT8OlzaUilvjAQaSYaE7UiwxMMRhxKQG6QRSy9KZOp5Unc0eh33sIVZvjh0laUX32PWoeQRzYIXYETYbAjqx2/EiGiQvTmK2yVnjUdxjbO/SL4J61eRAsH1tiZw9hEaBsI1gPybESwD0TFXFacGERTiLBNwjRrw==",
        "journal": {
          "chaingraph_version": "0.4.0",
          "kernel_digest": "sha256:aa963eb24ee88e725b08bbaaf443a0f756a8d42eb469f9c1fe1e68ef75dc4cf6",
          "output": {
            "close_fee": 30.25,
            "close_fee_type": "taker",
            "close_ts": "2026-07-02T00:00:00Z",
            "disclaimer": "Not financial advice. Funding rates are variable and unpredictable. Liquidation price is approximate (isolated margin). Actual outcomes depend on mark price, funding cadence, and venue rules. For informational purposes only.",
            "entry_price": 50000,
            "exit_price": 55000,
            "funding_rate_per_interval": 0.0001,
            "initial_margin": 10000,
            "leverage": 5,
            "liq_price": 45000,
            "maintenance_threshold": 5000,
            "margin_return_pct": 48.2225,
            "margin_returned": 14822.25,
            "mmr_pct": 10,
            "n_intervals": 24,
            "notional": 50000,
            "open_fee": 27.5,
            "open_fee_type": "taker",
            "open_ts": "2026-07-01T00:00:00Z",
            "position_size": 1,
            "price_delta": 5000,
            "realized_pnl_gross": 5000,
            "realized_pnl_net": 4942.25,
            "side": "long",
            "total_fees": 57.75,
            "total_funding_impact": 120,
            "total_net_pnl": 4822.25,
            "venue": "hyperliquid"
          }
        }
      }
    }
