{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getchord-xyz/json-schema/getchord-xyz-portfolio-activity-item-schema.json",
  "title": "PortfolioActivityItem",
  "description": "One side of one swap.",
  "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/PortfolioActivityItem",
  "type": "object",
  "properties": {
    "ts": {
      "type": "integer",
      "description": "Unix time, milliseconds."
    },
    "chain": {
      "type": [
        "integer",
        "string"
      ],
      "description": "EVM chain id, or `solana`."
    },
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ],
      "description": "`buy` = the wallet received `token`; `sell` = it gave it."
    },
    "token": {
      "type": "object",
      "properties": {
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "EVM token, lower-case. Null on a Solana row."
        },
        "mint": {
          "type": "string",
          "description": "Solana only, case kept."
        },
        "symbol": {
          "type": "string",
          "description": ""
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "logo": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        }
      }
    },
    "amount": {
      "type": "string",
      "description": "Whole tokens, decimal string."
    },
    "valueUsd": {
      "type": [
        "number",
        "null"
      ],
      "description": ""
    },
    "priceUsd": {
      "type": [
        "number",
        "null"
      ],
      "description": ""
    },
    "tx": {
      "type": "string",
      "description": "Transaction hash, or the Solana signature (case kept)."
    },
    "explorer": {
      "type": [
        "string",
        "null"
      ],
      "description": "The transaction on the chain's explorer."
    },
    "venue": {
      "type": [
        "string",
        "null"
      ],
      "description": "Venue display name."
    }
  }
}