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
}
}
Open a prediction market for a completed report
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
}
}
Show properties
"open" or "closed".null while market is open.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
}
}