{
  "x402Version": 2,
  "id": 13046,
  "slug": "13046",
  "resource": "https://x402.coinstats.app/portfolio/value",
  "description": "CoinStats shared portfolio total value and PnL — total value, DeFi value, unrealized + realized profit/loss. Requires sharetoken header",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xa2AD8183209E5d2F7f0d8F995f5601a0bb5100c7",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "headerFields": {
            "passcode": "optional-portfolio-passcode",
            "sharetoken": "eyJhbGciOi... (obtain from CoinStats portfolio -> Share)"
          },
          "method": "GET",
          "queryParams": {
            "currency": "USD",
            "portfolioId": "abc123def456"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "allTimeProfitLoss": 1751,
            "defiValue": 2500.25,
            "realizedProfitLoss": 500.25,
            "realizedProfitLossPercent": 5,
            "totalCost": 10000.5,
            "totalValue": 12500.75,
            "unrealizedProfitLoss": 1250.75,
            "unrealizedProfitLossPercent": 12.5
          },
          "type": "json"
        }
      },
      "schema": {
        "properties": {
          "input": {
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              }
            },
            "required": [
              "method"
            ]
          }
        }
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402.coinstats.app",
  "lastUpdated": "2026-09-11T17:40:03.058Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-09-11T17:40:02.915Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.coinstats.app",
    "manifest_name": "x402.coinstats.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}