{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/horizonpulse-dev/json-schema/horizonpulse-dev-market-quote-response-schema.json",
  "title": "MarketQuoteResponse",
  "description": "Inferred from a real response recorded from GET /api/demo/market-quote at 2026-10-12T12:20Z UTC (trimmed). Fields may be added; clients should ignore unknown fields.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/horizonpulse-dev-openapi.json#/components/schemas/MarketQuoteResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "source": {
      "type": "string"
    },
    "asOf": {
      "type": "string"
    },
    "target": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "host": {
          "type": "string"
        }
      }
    },
    "verdict": {
      "type": "string"
    },
    "reasons": {
      "type": "array"
    },
    "live": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string"
        },
        "httpStatus": {
          "type": "number"
        },
        "x402Version": {
          "type": "number"
        },
        "challengeSource": {
          "type": "string"
        },
        "resourceUrl": {
          "type": "string"
        },
        "accepts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "rail": {
                "type": "string"
              },
              "network": {
                "type": "string"
              },
              "scheme": {
                "type": "string"
              },
              "asset": {
                "type": "string"
              },
              "assetLabel": {
                "type": "string"
              },
              "amountAtomic": {
                "type": "string"
              },
              "amountUsd": {
                "type": "string"
              },
              "payTo": {
                "type": "string"
              },
              "maxTimeoutSeconds": {
                "type": "number"
              },
              "testnet": {
                "type": "boolean"
              }
            }
          }
        },
        "rails": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ms": {
          "type": "number"
        }
      }
    },
    "index": {
      "type": "object",
      "properties": {
        "found": {
          "type": "boolean"
        },
        "url": {
          "type": "string"
        },
        "lastUpdated": {
          "type": "string"
        },
        "lastCalledAt": {
          "type": "string"
        },
        "error": {
          "description": "Null in the recorded example; may hold a value."
        }
      }
    },
    "paytoCrossCheck": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "networks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "network": {
                "type": "string"
              },
              "rail": {
                "type": "string"
              },
              "live": {
                "type": "string"
              },
              "indexed": {
                "type": "string"
              },
              "agree": {
                "type": "boolean"
              }
            }
          }
        },
        "message": {
          "type": "string"
        }
      }
    },
    "buyPlan": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string"
        },
        "ready": {
          "type": "boolean"
        },
        "reason": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "payTo": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "network": {
                "type": "string"
              },
              "rail": {
                "type": "string"
              },
              "payTo": {
                "type": "string"
              },
              "amountUsd": {
                "type": "string"
              }
            }
          }
        },
        "holdsFunds": {
          "type": "boolean"
        },
        "takeRate": {
          "type": "number"
        }
      }
    },
    "evidence": {
      "type": "array",
      "description": "What this call verified itself. Built only from what the call observed. The id list may grow; ignore ids you do not know.",
      "items": {
        "type": "object",
        "required": [
          "id",
          "at",
          "detail"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "live_probe",
              "challenge_parsed",
              "live_networks",
              "index_entry",
              "index_absent",
              "payto_network_match",
              "payto_network_mismatch",
              "price_matches_index"
            ]
          },
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "detail": {
            "type": "string"
          }
        }
      }
    },
    "unknowns": {
      "type": "array",
      "description": "What this call could not confirm. An empty list is not a safety guarantee. The id list may grow; ignore ids you do not know.",
      "items": {
        "type": "object",
        "required": [
          "id",
          "message"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "index_unavailable",
              "not_indexed",
              "live_probe_failed",
              "payto_not_checked",
              "payto_one_sided",
              "asset_unrecognized",
              "seller_delivery",
              "seller_identity",
              "terms_after_probe"
            ]
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "elapsedMs": {
      "type": "number"
    }
  }
}