Markets
List, close, and resolve operator-owned markets
Market endpoints operate only on markets owned by the authenticated operator.
List Markets
GET /operator/api/marketsOptional filters:
| Query | Description |
|---|---|
status | Comma-separated statuses, for example open,closed |
series_id | Only markets spawned from a specific series |
category | Category code |
tags | Comma-separated tags |
q | Search text |
limit | Page size |
cursor | Cursor from previous page |
Response:
{
"markets": [],
"next_cursor": null,
"total": 0
}Get Market
GET /operator/api/markets/{id}Returns the market definition, status, timing, outcomes, pricing quantities, and summary stats.
Close Market
POST /operator/api/markets/{id}/closeClosing a market stops further trading.
{ "status": "closed" }Resolve Market
POST /operator/api/markets/{id}/resolveBody:
{
"outcome": "yes",
"evidence": {
"source": "operator",
"url": "https://example.com/result"
}
}Resolution and local Phoenix settlement are atomic. A successful response means Phoenix has settled the market and queued wallet credit notifications.
{
"status": "settled",
"outcome": "yes"
}