Skip to main content

PUT /api/v1/events/{id}/pools/{pool_id}/probabilities

Updates the market probabilities for a specific pool. This adjusts the LMSR AMM state to reflect the new target probabilities. Only the event creator can perform this action.

Authentication​

Creator -- requires a valid Bearer token in the Authorization header. The authenticated user must be the creator of the parent event.

Request​

Path Parameters​

ParameterTypeRequiredDescription
idintegerYesThe parent event ID
pool_idintegerYesThe pool ID to update

Body​

FieldTypeRequiredDescription
probabilitiesarray of floatsYesNew probability values for each market outcome. Must sum to 1.

Example​

curl -X PUT https://intotes.com/api/v1/events/10/pools/42/probabilities \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"probabilities": [0.55, 0.45]
}'

Response​

200 OK​

{
"message": "probabilities updated"
}

Errors​

StatusCodeDescription
400invalid_probabilitiesProbabilities array is missing, empty, or does not sum to 1
401unauthorizedMissing or invalid authentication token
403forbiddenAuthenticated user is not the event creator
404pool_not_foundNo pool exists with the given ID under this event
500internal_errorUnexpected server error