Skip to main content
POST
/
market
/
{reportId}
curl -X POST http://localhost:3001/market/a1b2c3d4-e5f6-7890-abcd-ef1234567890
{
  "success": true,
  "data": {
    "id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
    "reportId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "githubUrl": "https://github.com/ripple/rippled",
    "status": "open",
    "bets": [
      {
        "userId": "ai-agent",
        "valuation": 15.2,
        "amount": 80,
        "timestamp": "2026-03-14T10:01:00.000Z"
      }
    ],
    "consensusValuation": 15.2,
    "openedAt": "2026-03-14T10:01:00.000Z",
    "closedAt": null,
    "agentValuation": 15.2,
    "agentConfidence": 74
  }
}

Path Parameters

reportId
string
required
Report ID from a completed analysis.

Response

Creates a new prediction market seeded with the AI agent’s initial valuation estimate. If a market already exists for this report, returns the existing one.
data
ValuationMarket
curl -X POST http://localhost:3001/market/a1b2c3d4-e5f6-7890-abcd-ef1234567890
{
  "success": true,
  "data": {
    "id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
    "reportId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "githubUrl": "https://github.com/ripple/rippled",
    "status": "open",
    "bets": [
      {
        "userId": "ai-agent",
        "valuation": 15.2,
        "amount": 80,
        "timestamp": "2026-03-14T10:01:00.000Z"
      }
    ],
    "consensusValuation": 15.2,
    "openedAt": "2026-03-14T10:01:00.000Z",
    "closedAt": null,
    "agentValuation": 15.2,
    "agentConfidence": 74
  }
}