{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/horizonpulse-dev/json-schema/horizonpulse-dev-market-search-response-schema.json",
  "title": "MarketSearchResponse",
  "description": "Inferred from a real response recorded from GET /api/demo/market-search at 2026-10-12T04:09Z 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/MarketSearchResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "source": {
      "type": "string"
    },
    "asOf": {
      "type": "string"
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string"
        },
        "n": {
          "type": "number"
        },
        "kind": {
          "description": "Null in the recorded example; may hold a value."
        },
        "rail": {
          "description": "Null in the recorded example; may hold a value."
        },
        "maxPrice": {
          "description": "Null in the recorded example; may hold a value."
        },
        "minHealth": {
          "description": "Null in the recorded example; may hold a value."
        }
      }
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "seller": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string"
              },
              "verified": {
                "type": "boolean"
              },
              "isHorizonPulse": {
                "type": "boolean"
              }
            }
          },
          "listing": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "injectionSuspect": {
                "type": "boolean"
              },
              "note": {
                "type": "string"
              }
            }
          },
          "price": {
            "type": "object",
            "properties": {
              "amountUsd": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "unit": {
                "type": "string"
              },
              "scheme": {
                "type": "string"
              }
            }
          },
          "rails": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "indexedAccepts": {
            "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"
                }
              }
            }
          },
          "checkout": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string"
              },
              "holdsFunds": {
                "type": "boolean"
              },
              "takeRate": {
                "type": "number"
              }
            }
          },
          "health": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "score": {
                "type": "number"
              },
              "lastCalledAt": {
                "type": "string"
              },
              "lastUpdated": {
                "type": "string"
              },
              "uniquePayers30d": {
                "type": "number"
              },
              "probe": {
                "type": "object",
                "properties": {
                  "httpStatus": {
                    "type": "number"
                  },
                  "ms": {
                    "type": "number"
                  },
                  "error": {
                    "description": "Null in the recorded example; may hold a value."
                  },
                  "findings": {
                    "type": "array"
                  },
                  "cached": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "trust": {
            "type": "object",
            "properties": {
              "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"
                  }
                }
              },
              "paytoSigned": {
                "description": "Null in the recorded example; may hold a value."
              },
              "paytoStableSince": {
                "description": "Null in the recorded example; may hold a value."
              }
            }
          },
          "source": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "license": {
            "description": "Null in the recorded example; may hold a value."
          },
          "fetchedAt": {
            "type": "string"
          },
          "ttlSeconds": {
            "type": "number"
          },
          "rank": {
            "type": "object",
            "properties": {
              "score": {
                "type": "number"
              },
              "parts": {
                "type": "object",
                "properties": {
                  "relevance": {
                    "type": "number"
                  },
                  "live": {
                    "type": "number"
                  },
                  "recency": {
                    "type": "number"
                  },
                  "adoption": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "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"
              }
            }
          }
        }
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "candidates": {
          "type": "number"
        },
        "filtered": {
          "type": "number"
        },
        "returned": {
          "type": "number"
        },
        "verifiedLive": {
          "type": "number"
        },
        "failedLive": {
          "type": "number"
        },
        "paytoMismatches": {
          "type": "number"
        },
        "skippedNonHttps": {
          "type": "number"
        }
      }
    },
    "index": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string"
        },
        "partialResults": {
          "type": "boolean"
        },
        "resources": {
          "type": "number"
        }
      }
    },
    "elapsedMs": {
      "type": "number"
    }
  }
}