Skip to content

Add Order

Service-level call to insert an order into the matching engine.

POST/orderbook/v1/addorder
Terminal window
curl -X POST https://api.juspredict.com/orderbook/v1/addorder \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"user_id": "user-uuid",
"event_id": "event-uuid",
"order_id": "order-uuid",
"predicted_outcome": "Team A",
"investment_amount": "50.00",
"order_type": "NEW_PREDICTION"
}'
{
"status": { "type": "SUCCESS" },
"name": "Order Book Match ID"
}
FieldTypeDescription
statusStatusOperation status.