Skip to main content
POST
/
market
/
{marketId}
/
close
curl -X POST http://localhost:3001/market/m1a2b3c4-d5e6-7890-abcd-ef1234567890/close
{
  "success": true,
  "data": {
    "id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
    "status": "closed",
    "consensusValuation": 11.5,
    "closedAt": "2026-03-14T10:10:00.000Z"
  }
}

Path Parameters

marketId
string
required
Market ID.

Response

Closes the market and locks in the final consensus valuation. No more bets can be placed after closing.
You don’t need to call this explicitly before settling — POST /market/:id/settle will close the market automatically if it’s still open.
curl -X POST http://localhost:3001/market/m1a2b3c4-d5e6-7890-abcd-ef1234567890/close
{
  "success": true,
  "data": {
    "id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
    "status": "closed",
    "consensusValuation": 11.5,
    "closedAt": "2026-03-14T10:10:00.000Z"
  }
}