{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dripmetrics-ai/json-schema/dripmetrics-ai-aerodrome-trade-activity-result-schema.json",
  "title": "AerodromeTradeActivityResult",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dripmetrics-ai-openapi.json#/components/schemas/AerodromeTradeActivityResult",
  "type": "object",
  "properties": {
    "metric": {
      "type": "string",
      "const": "trade-activity"
    },
    "methodologyVersion": {
      "type": "string",
      "const": "aerodrome-trade-activity-v2"
    },
    "pair": {
      "type": "string",
      "enum": [
        "B20:SPCX/USDC",
        "B20:MSTR/USDC",
        "B20:SNDK/USDC",
        "B20:MSFT/USDC",
        "B20:TSLA/USDC"
      ]
    },
    "exchange": {
      "type": "string",
      "const": "aerodrome"
    },
    "chain": {
      "type": "string",
      "const": "base"
    },
    "chainId": {
      "type": "integer",
      "const": 8453
    },
    "interval": {
      "type": "string",
      "const": "1h"
    },
    "intervalStart": {
      "type": "string",
      "format": "date-time"
    },
    "intervalEnd": {
      "type": "string",
      "format": "date-time"
    },
    "intervalEndSemantics": {
      "type": "string",
      "const": "exclusive"
    },
    "value": {
      "type": "integer",
      "minimum": 0
    },
    "units": {
      "type": "object",
      "properties": {
        "totalBaseVolume": {
          "type": "string",
          "description": "Base token units (for example B20:SPCX), not shares."
        },
        "totalQuoteVolume": {
          "type": "string",
          "const": "USDC"
        },
        "averageExecutionQuoteVolume": {
          "type": "string",
          "const": "USDC"
        }
      },
      "required": [
        "totalBaseVolume",
        "totalQuoteVolume",
        "averageExecutionQuoteVolume"
      ],
      "additionalProperties": false
    },
    "components": {
      "type": "object",
      "additionalProperties": true
    },
    "sampleSize": {
      "type": "object",
      "additionalProperties": true
    },
    "quality": {
      "type": "object",
      "additionalProperties": true
    },
    "source": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "metric",
    "methodologyVersion",
    "pair",
    "exchange",
    "chain",
    "chainId",
    "interval",
    "intervalStart",
    "intervalEnd",
    "intervalEndSemantics",
    "value",
    "units",
    "components",
    "sampleSize",
    "quality",
    "source"
  ],
  "additionalProperties": false
}