{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getchord-xyz/json-schema/getchord-xyz-pnl-token-schema.json",
  "title": "PnlToken",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getchord-xyz-portfolio-api-openapi.yml#/components/schemas/PnlToken",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "EVM address, hex, case-insensitive."
    },
    "symbol": {
      "type": [
        "string",
        "null"
      ],
      "description": ""
    },
    "logo": {
      "type": [
        "string",
        "null"
      ],
      "description": ""
    },
    "realizedUsd": {
      "type": "number",
      "description": ""
    },
    "unrealizedUsd": {
      "type": "number",
      "description": ""
    },
    "totalUsd": {
      "type": "number",
      "description": ""
    },
    "costRemaining": {
      "type": "number",
      "description": ""
    },
    "curValue": {
      "type": "number",
      "description": ""
    },
    "curAmount": {
      "type": "number",
      "description": ""
    },
    "avgCost": {
      "type": "number",
      "description": "Average cost per token, USD."
    },
    "roiPct": {
      "type": [
        "number",
        "null"
      ],
      "description": ""
    },
    "untrackedAmount": {
      "type": "number",
      "description": "Balance that arrived by transfer (no cost basis)."
    },
    "untrackedValue": {
      "type": "number",
      "description": ""
    }
  }
}