{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cleartracedata-com/json-schema/cleartracedata-com-routing-flows-response-schema.json",
  "title": "RoutingFlowsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cleartracedata-com-core-data-api-openapi.yml#/components/schemas/RoutingFlowsResponse",
  "properties": {
    "flows": {
      "items": {
        "$ref": "#/$defs/RoutingFlow"
      },
      "type": "array",
      "title": "Flows",
      "description": "Interface-to-interface routing edges, largest first."
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total number of matching edges."
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "description": "The maximum number of edges returned."
    },
    "offset": {
      "type": "integer",
      "title": "Offset",
      "description": "The offset used for pagination."
    }
  },
  "type": "object",
  "required": [
    "flows",
    "total",
    "limit",
    "offset"
  ],
  "$defs": {
    "RoutingFlow": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source",
          "description": "The originating interface or wallet cohort."
        },
        "target": {
          "type": "string",
          "title": "Target",
          "description": "The interface/router the volume flowed into."
        },
        "volume_usd": {
          "type": "number",
          "title": "Volume Usd",
          "description": "Total USD volume on this source→target edge."
        }
      },
      "type": "object",
      "required": [
        "source",
        "target",
        "volume_usd"
      ],
      "title": "RoutingFlow"
    }
  }
}