{
  "$schema": "https://degreesofsatoshi.com/encyclopedia/schemas/article-v1.json",
  "schemaVersion": "1.0.0",
  "id": "realized-unrealized-trading-pnl",
  "canonical": "https://degreesofsatoshi.com/encyclopedia/realized-unrealized-trading-pnl/",
  "collection": "defi",
  "title": "Realized and unrealized trading P&L: what changed in the account?",
  "description": "Reconcile marked exposure, completed trades, funding and settlement without double-counting the same gain.",
  "aliases": [
    "realized unrealized PnL perpetual futures",
    "does funding count as realized profit"
  ],
  "dates": {
    "published": "2026-10-02",
    "modified": "2026-10-02",
    "verified": "2026-10-02T19:18:00.092Z",
    "dataAsOf": "2026-10-02"
  },
  "authorship": {
    "publisher": "Degrees of Satoshi editorial project",
    "process": "AI-assisted research and drafting with a separate automated source-verification pass; no external expert or named human review is implied."
  },
  "quickAnswer": {
    "text": "Unrealized P&L values exposure that is still open using the venue’s chosen reference. Realized P&L records amounts recognized through trades, funding or settlement under its accounting rules. Realized does not always mean the position is closed or the amount is immediately withdrawable; the cited Deribit daily settlement is a concrete example.",
    "claimId": "realized-unrealized-trading-pnl-quick-answer",
    "sourceIds": [
      "x425-defi-deribit-mark",
      "x425-defi-deribit-settlement",
      "x425-defi-deribit-log",
      "x425-defi-dydx-funding"
    ]
  },
  "keyFacts": [
    {
      "label": "Valuation",
      "value": "A mark can value unrealized P&L.",
      "sourceIds": [
        "x425-defi-deribit-mark"
      ],
      "id": "valuation",
      "claimId": "realized-unrealized-trading-pnl-fact-valuation"
    },
    {
      "label": "Funding",
      "value": "dYdX funding changes realized P&L while a position is open.",
      "sourceIds": [
        "x425-defi-dydx-funding"
      ],
      "id": "funding",
      "claimId": "realized-unrealized-trading-pnl-fact-funding"
    },
    {
      "label": "Settlement",
      "value": "Deribit daily settlement can realize P&L without closing exposure.",
      "sourceIds": [
        "x425-defi-deribit-settlement"
      ],
      "id": "settlement",
      "claimId": "realized-unrealized-trading-pnl-fact-settlement"
    }
  ],
  "prerequisites": [
    "perpetual-futures"
  ],
  "sections": [
    {
      "id": "example",
      "heading": "Separate price profit from total outcome",
      "sourceIds": [
        "x425-defi-deribit-log",
        "x425-defi-dydx-funding"
      ],
      "paragraphs": [
        "For a hypothetical linear long of 2 units entered at 100 and valued at 108, gross price P&L is 16 quote units. If cumulative funding paid is 3 and trading fees paid are 1, the combined result is 12 before any other costs.",
        "Do not subtract funding again if the displayed total already includes it. Field definitions determine whether a figure is gross, net, session-only or lifetime."
      ]
    },
    {
      "id": "session",
      "heading": "A reset is not an erased gain",
      "sourceIds": [
        "x425-defi-deribit-settlement"
      ],
      "paragraphs": [
        "Deribit documents daily settlement that transfers session results into balance and resets session counters. The position’s total history persists. A new session showing zero P&L therefore need not mean the prior gain disappeared."
      ]
    },
    {
      "id": "reconcile",
      "heading": "Use a balance bridge",
      "sourceIds": [
        "x425-defi-deribit-log"
      ],
      "paragraphs": [
        "Start with opening balance, add deposits and recognized gains, subtract withdrawals and recognized losses or fees, then account for any still-unrealized value to reach equity. Keep transfers separate from trading performance. Downloaded records can round differently from the screen, so small differences need the underlying units and timestamps."
      ]
    }
  ],
  "faq": [
    {
      "question": "Can realized profit exist while my trade remains open?",
      "answer": "Yes. Funding and some venues’ periodic settlement can recognize amounts without closing the exposure.",
      "sourceIds": [
        "x425-defi-dydx-funding",
        "x425-defi-deribit-settlement"
      ]
    }
  ],
  "claims": [
    {
      "id": "realized-unrealized-trading-pnl-quick-answer",
      "articleSlug": "realized-unrealized-trading-pnl",
      "statement": "Unrealized P&L values exposure that is still open using the venue’s chosen reference. Realized P&L records amounts recognized through trades, funding or settlement under its accounting rules. Realized does not always mean the position is closed or the amount is immediately withdrawable; the cited Deribit daily settlement is a concrete example.",
      "sourceIds": [
        "source-f2ccdf54bf686a07",
        "source-ec50b60aee003176",
        "source-e1e8263d81aee299",
        "source-18542509002f6af2"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-f2ccdf54bf686a07",
          "locator": "What is the Mark Price; building blocks"
        },
        {
          "sourceId": "source-ec50b60aee003176",
          "locator": "Daily settlement versus expiration"
        },
        {
          "sourceId": "source-e1e8263d81aee299",
          "locator": "Cash Flow; price; Funding"
        },
        {
          "sourceId": "source-18542509002f6af2",
          "locator": "Funding rates; premium; time intervals"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": "2026-10-02",
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T19:18:00.092Z",
        "reviewer": "Independent automated verification — Codex root, separate from the DeFi drafting agent",
        "notes": [
          "Checked Deribit daily session reset and transaction-log definitions plus dYdX funding;2×8−3−1=12, no double counting; UI/CSV rounding source explicit."
        ]
      }
    },
    {
      "id": "realized-unrealized-trading-pnl-fact-valuation",
      "articleSlug": "realized-unrealized-trading-pnl",
      "statement": "Valuation: A mark can value unrealized P&L.",
      "sourceIds": [
        "source-f2ccdf54bf686a07"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-f2ccdf54bf686a07",
          "locator": "What is the Mark Price; building blocks"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": "2026-10-02",
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T19:18:00.092Z",
        "reviewer": "Independent automated verification — Codex root, separate from the DeFi drafting agent",
        "notes": [
          "Checked Deribit daily session reset and transaction-log definitions plus dYdX funding;2×8−3−1=12, no double counting; UI/CSV rounding source explicit."
        ]
      }
    },
    {
      "id": "realized-unrealized-trading-pnl-fact-funding",
      "articleSlug": "realized-unrealized-trading-pnl",
      "statement": "Funding: dYdX funding changes realized P&L while a position is open.",
      "sourceIds": [
        "source-18542509002f6af2"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-18542509002f6af2",
          "locator": "Funding rates; premium; time intervals"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": "2026-10-02",
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T19:18:00.092Z",
        "reviewer": "Independent automated verification — Codex root, separate from the DeFi drafting agent",
        "notes": [
          "Checked Deribit daily session reset and transaction-log definitions plus dYdX funding;2×8−3−1=12, no double counting; UI/CSV rounding source explicit."
        ]
      }
    },
    {
      "id": "realized-unrealized-trading-pnl-fact-settlement",
      "articleSlug": "realized-unrealized-trading-pnl",
      "statement": "Settlement: Deribit daily settlement can realize P&L without closing exposure.",
      "sourceIds": [
        "source-ec50b60aee003176"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-ec50b60aee003176",
          "locator": "Daily settlement versus expiration"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": "2026-10-02",
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T19:18:00.092Z",
        "reviewer": "Independent automated verification — Codex root, separate from the DeFi drafting agent",
        "notes": [
          "Checked Deribit daily session reset and transaction-log definitions plus dYdX funding;2×8−3−1=12, no double counting; UI/CSV rounding source explicit."
        ]
      }
    }
  ],
  "sources": [
    {
      "id": "x425-defi-deribit-mark",
      "label": "Mark Prices",
      "publisher": "Deribit",
      "url": "https://support.deribit.com/api/v2/help_center/en-us/articles/25944746962973.json",
      "locator": "What is the Mark Price; building blocks",
      "note": "Official support article retrieved through its public API; venue-specific mechanics.",
      "version": "Support article retrieved 2026-10-02; hash recorded",
      "checkedAt": "2026-10-02T19:02:00.584Z",
      "contentSha256": "bdc41686d59dac081fb70d2bb7aa8a87159ecd32cf7d82f181e18a6ba91bc5dc",
      "recordId": "source-f2ccdf54bf686a07"
    },
    {
      "id": "x425-defi-deribit-settlement",
      "label": "Settlement",
      "publisher": "Deribit",
      "url": "https://support.deribit.com/api/v2/help_center/en-us/articles/29734325712413.json",
      "locator": "Daily settlement versus expiration",
      "note": "Official support article retrieved through its public API; venue-specific mechanics.",
      "version": "Support article retrieved 2026-10-02; hash recorded",
      "checkedAt": "2026-10-02T19:02:03.014Z",
      "contentSha256": "8bb116d7febb3edb2541e403f598cf112d9a6447c0c30dc2d6fcab0907147e97",
      "recordId": "source-ec50b60aee003176"
    },
    {
      "id": "x425-defi-deribit-log",
      "label": "Transaction log",
      "publisher": "Deribit",
      "url": "https://support.deribit.com/api/v2/help_center/en-us/articles/25944587269021.json",
      "locator": "Cash Flow; price; Funding",
      "note": "Official support article retrieved through its public API; venue-specific mechanics.",
      "version": "Support article retrieved 2026-10-02; hash recorded",
      "checkedAt": "2026-10-02T19:02:03.438Z",
      "contentSha256": "8ed2b1350c5c7b8212f9618279ac652a0b6a69ac2b4cbaf232e98e98f53fea06",
      "recordId": "source-e1e8263d81aee299"
    },
    {
      "id": "x425-defi-dydx-funding",
      "label": "Default funding rates on dYdX",
      "publisher": "dYdX Operations Services",
      "url": "https://help.dydx.trade/en/articles/166992-default-funding-rates-on-dydx",
      "locator": "Funding rates; premium; time intervals",
      "note": "Funding direction, position-sized transfers and governance-adjustable calculation.",
      "version": "Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded",
      "checkedAt": "2026-10-02T18:53:20.972Z",
      "contentSha256": "02604495325daec591f55633ebd2e26e8bef8c74210bedd19ecc1358bd2f5668",
      "recordId": "source-18542509002f6af2"
    }
  ],
  "related": {
    "articles": [
      "perpetual-funding-payments",
      "options-settlement-currency",
      "leverage-margin-notional",
      "initial-vs-maintenance-margin",
      "open-interest-vs-volume"
    ],
    "dossiers": [],
    "wallets": []
  },
  "revisionHistory": [
    {
      "date": "2026-10-02",
      "kind": "published",
      "summary": "First publication after primary-source research and separate automated verification."
    }
  ],
  "citation": "Degrees of Satoshi editorial project. “Realized and unrealized trading P&L: what changed in the account?.” Published 2026-10-02; updated 2026-10-02. https://degreesofsatoshi.com/encyclopedia/realized-unrealized-trading-pnl/"
}
