curl -X POST http://localhost:3001/market/m1a2b3c4-d5e6-7890-abcd-ef1234567890/bet \ -H "Content-Type: application/json" \ -d '{ "userId": "alice", "valuation": 8.5, "amount": 100 }'
{ "success": true, "data": { "id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890", "status": "open", "bets": [ { "userId": "ai-agent", "valuation": 15.2, "amount": 80, "timestamp": "2026-03-14T10:01:00.000Z" }, { "userId": "alice", "valuation": 8.5, "amount": 100, "timestamp": "2026-03-14T10:05:00.000Z" } ], "consensusValuation": 11.5, "openedAt": "2026-03-14T10:01:00.000Z", "closedAt": null } }
Place a valuation bet on an open market
8.5
consensus = Σ(valuation_i * amount_i) / Σ(amount_i)