Templates and Series
Reusable market definitions and recurring market schedules
Templates describe reusable market definitions. Series use a template and schedule to create recurring markets.
Templates
GET /operator/api/templates
POST /operator/api/templates
GET /operator/api/templates/{id}
PATCH /operator/api/templates/{id}
DELETE /operator/api/templates/{id}Create body:
{
"status": "active",
"definition": {
"title": "Will BTC close higher today?",
"description": "Resolves from the configured price feed.",
"outcome_schema": "binary",
"outcomes": [
{ "id": "yes", "label": "Yes" },
{ "id": "no", "label": "No" }
],
"trading_model": {
"mechanism": { "kind": "lmsr", "b": "200" },
"currency": { "code": "USDT" },
"fee_policy": { "kind": "none" }
},
"resolution_model": {
"kind": "manual",
"criteria": "Operator review"
},
"presentation": {
"tags": ["crypto"],
"featured": true
}
}
}Series
GET /operator/api/series
POST /operator/api/series
GET /operator/api/series/{id}
PATCH /operator/api/series/{id}
DELETE /operator/api/series/{id}
POST /operator/api/series/{id}/pause
POST /operator/api/series/{id}/resumeCreate body:
{
"template_id": "template-uuid",
"status": "active",
"schedule": {
"kind": "interval",
"trading_duration_seconds": 300,
"next_open_delay_seconds": 5,
"resolution_delay_seconds": 60
}
}Pausing a series stops future market creation. It does not rewrite markets that already exist.