{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fiatdock-com/json-schema/fiatdock-com-quote-schema.json",
  "title": "Quote",
  "description": "Live rate, itemised fees and the amount received. Indicative, not executable.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fiatdock-com-quote-api-openapi.yml#/components/schemas/Quote",
  "type": "object",
  "properties": {
    "side": {
      "type": "string",
      "enum": [
        "SELL",
        "BUY"
      ],
      "description": "Quote direction"
    },
    "rate": {
      "type": "number",
      "description": "Exchange rate used (fiat per USDC)"
    },
    "youSend": {
      "type": "string",
      "description": "Amount the sender pays, e.g. '100 USDC'"
    },
    "youReceive": {
      "type": "string",
      "description": "Amount received NET of all provider fees, e.g. '87.78 EUR' — this is the number to decide on"
    },
    "fiatCurrency": {
      "type": "string",
      "description": "Fiat currency of the quote"
    },
    "network": {
      "type": "string",
      "description": "USDC network the quote assumes"
    },
    "providerNetworkFee": {
      "type": "number",
      "description": "Provider-reported network delivery fee (0 on Base)"
    },
    "providerFixedFee": {
      "type": "number",
      "description": "Provider-reported fixed fee component"
    },
    "source": {
      "type": "string",
      "description": "Where the price came from (the provider's own conversion API)"
    },
    "asOf": {
      "type": "string",
      "description": "ISO timestamp of the quote"
    },
    "note": {
      "type": "string",
      "description": "Caveats — youReceive is net of provider fees; the x402 session fee is separate"
    }
  },
  "required": [
    "side",
    "rate",
    "youSend",
    "youReceive"
  ]
}