{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ticktape-cc/json-schema/ticktape-cc-preflight-copy-response-schema.json",
  "title": "PreflightCopyResponse",
  "description": "Copy-trading profile for one wallet, computed from TickTape's identity-tagged tape (Dec 2025 onward), rolling 90-day window, recomputed nightly. QUEUED responses ship as HTTP 202 with a Retry-After header, carry only verdict/wallet/reasons/retry_after_seconds/note and are always free.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ticktape-cc-openapi.json#/components/schemas/PreflightCopyResponse",
  "type": "object",
  "required": [
    "ok",
    "verdict"
  ],
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "verdict": {
      "type": "string",
      "enum": [
        "COPY",
        "WATCH",
        "VETO",
        "NO_COVERAGE",
        "QUEUED"
      ],
      "description": "COPY only for out-of-sample-validated wallets; in-sample verdicts are capped at WATCH. VETO = negative fee-inclusive copier ROI or both-sides farming pattern. NO_COVERAGE = below the 10-first-entry floor. QUEUED = not computed yet (HTTP 202 + Retry-After, free) - typically ready in minutes (retry after retry_after_seconds), worst case about an hour."
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "wallet": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "last pseudonym seen on the tape"
    },
    "window": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "days": {
          "type": "integer"
        }
      }
    },
    "n_first_entries": {
      "type": "integer",
      "description": "distinct (market, outcome) first BUY entries in the window; crypto up/down markets excluded"
    },
    "n_resolved": {
      "type": "integer"
    },
    "n_pending": {
      "type": "integer"
    },
    "win_rate_pct": {
      "type": [
        "number",
        "null"
      ]
    },
    "roi_slippage_basis_pct": {
      "type": [
        "number",
        "null"
      ],
      "description": "$5/entry at whale price +2c slippage, held to resolution"
    },
    "roi_fee_inclusive_pct": {
      "type": [
        "number",
        "null"
      ],
      "description": "slippage basis minus explicit 2026 taker fees (rate*p*(1-p))"
    },
    "avg_entry_price": {
      "type": [
        "number",
        "null"
      ]
    },
    "entry_price_buckets": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "category_mix_pct": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      }
    },
    "clips_per_entry_avg": {
      "type": "number",
      "description": "iceberg signal - how many fills the wallet splits one entry into"
    },
    "both_sides_pct": {
      "type": "number",
      "description": "share of markets where the wallet bought BOTH outcomes (farming smell)"
    },
    "first_trade_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_trade_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "active_days": {
      "type": "integer"
    },
    "retry_after_seconds": {
      "type": "integer",
      "description": "QUEUED only"
    },
    "computed_at": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "paid": {
      "$ref": "#/$defs/Paid"
    }
  },
  "$defs": {
    "Paid": {
      "type": "object",
      "description": "Payment record attached to paid responses. Per-call x402 settlement: {price_paid_usdc, transaction, network, receipt}. Credit-lane (bearer token) calls: {credits_used, credits_remaining}. Absent on sandbox and free QUEUED responses.",
      "properties": {
        "price_paid_usdc": {
          "type": "string",
          "description": "USDC actually settled for this call, as a decimal string (e.g. \"0.02\")."
        },
        "transaction": {
          "type": "string",
          "description": "On-chain settlement transaction hash."
        },
        "network": {
          "type": "string",
          "description": "CAIP-2 network id, eip155:8453 (Base)."
        },
        "receipt": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Basescan transaction link for the on-chain settlement."
        },
        "credits_used": {
          "type": "integer",
          "description": "Credits debited for this call (credit-lane only)."
        },
        "credits_remaining": {
          "type": "integer",
          "description": "Credits left on the wallet after this call (credit-lane only)."
        }
      }
    }
  }
}