validate_market_question
Validate a market question against v7.2 rules before creating it, returning block status and reason. Requires timing parameters for accurate validation.
Instructions
Validate a market question against v7.2 rules BEFORE attempting to create it. Returns whether the question would be blocked and why. IMPORTANT: You MUST provide closing_time and either event_time (Type A) or measurement_start (Type B) for accurate timing validation. Without timing params, many invalid markets will pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Market layer (default: lab) | |
| question | Yes | Market question to validate | |
| event_time | No | ISO 8601 event time — REQUIRED for Type A (scheduled event) markets | |
| market_type | No | Type A (event) or Type B (measurement) | |
| closing_time | No | ISO 8601 when betting closes (REQUIRED for timing validation) | |
| measurement_start | No | ISO 8601 measurement start — REQUIRED for Type B (measurement period) markets |