curl -X PATCH https://api.totalis.trade/v1/quote-requests/1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40 \
-H "X-API-Key: $TOTALIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"legs": [
{"market_ticker": "KXBTC-26JUN01-T72500", "side": "yes", "venue": "kalshi"},
{"market_ticker": "KXETH-26JUN01-T3000", "side": "no", "venue": "kalshi"}
],
"bet_amount": 50
}'
{
"data": {
"quote_request": {
"id": "1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40",
"user_id": "did:privy:cm3abc...",
"version": 2,
"request_hash": "sha256:a3f4b2c...",
"book_seq": 0,
"status": "active",
"bet_amount": 50,
"expires_at": "2026-06-01T18:46:10.000Z",
"legs": [
{
"id": "8ccf2c5d-3a61-4707-93f2-b6f0a0f0c0c6",
"event_ticker": "KXBTC-26JUN01",
"market_ticker": "KXBTC-26JUN01-T72500",
"side": "yes",
"venue": "kalshi"
},
{
"id": "d4e5f6a7-8901-23bc-def4-567890abcdef",
"event_ticker": "KXETH-26JUN01",
"market_ticker": "KXETH-26JUN01-T3000",
"side": "no",
"venue": "kalshi"
}
],
"input_legs": [
{"market_ticker": "KXBTC-26JUN01-T72500", "side": "yes", "venue": "kalshi"},
{"market_ticker": "KXETH-26JUN01-T3000", "side": "no", "venue": "kalshi"}
]
}
}
}
Quote service
Update quote request
Update the legs or bet amount on an active quote request.
PATCH
/
v1
/
quote-requests
/
{id}
curl -X PATCH https://api.totalis.trade/v1/quote-requests/1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40 \
-H "X-API-Key: $TOTALIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"legs": [
{"market_ticker": "KXBTC-26JUN01-T72500", "side": "yes", "venue": "kalshi"},
{"market_ticker": "KXETH-26JUN01-T3000", "side": "no", "venue": "kalshi"}
],
"bet_amount": 50
}'
{
"data": {
"quote_request": {
"id": "1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40",
"user_id": "did:privy:cm3abc...",
"version": 2,
"request_hash": "sha256:a3f4b2c...",
"book_seq": 0,
"status": "active",
"bet_amount": 50,
"expires_at": "2026-06-01T18:46:10.000Z",
"legs": [
{
"id": "8ccf2c5d-3a61-4707-93f2-b6f0a0f0c0c6",
"event_ticker": "KXBTC-26JUN01",
"market_ticker": "KXBTC-26JUN01-T72500",
"side": "yes",
"venue": "kalshi"
},
{
"id": "d4e5f6a7-8901-23bc-def4-567890abcdef",
"event_ticker": "KXETH-26JUN01",
"market_ticker": "KXETH-26JUN01-T3000",
"side": "no",
"venue": "kalshi"
}
],
"input_legs": [
{"market_ticker": "KXBTC-26JUN01-T72500", "side": "yes", "venue": "kalshi"},
{"market_ticker": "KXETH-26JUN01-T3000", "side": "no", "venue": "kalshi"}
]
}
}
}
Replace the legs or bet amount on a quote request while its status is
A Privy JWT (
active. The update increments version and recomputes request_hash. Every existing quote is invalidated, and market makers receive the new request to quote again.
Authentication
Send your API key in theX-API-Key header. The key needs the trading:write scope.
X-API-Key: <your-api-key>
Authorization: Bearer <jwt>) is also accepted. See Authentication.
Path parameters
string
required
The quote request ID (UUID).
Request body
Same fields as Create quote request.array
required
number
required
USDC bet amount (1-100).
Response
Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid body or market validation failed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 403 | FORBIDDEN | You do not own this quote request. |
| 404 | NOT_FOUND | Quote request not found. |
| 409 | CONFLICT | Quote request is already committed, cancelled, or expired. |
curl -X PATCH https://api.totalis.trade/v1/quote-requests/1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40 \
-H "X-API-Key: $TOTALIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"legs": [
{"market_ticker": "KXBTC-26JUN01-T72500", "side": "yes", "venue": "kalshi"},
{"market_ticker": "KXETH-26JUN01-T3000", "side": "no", "venue": "kalshi"}
],
"bet_amount": 50
}'
{
"data": {
"quote_request": {
"id": "1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40",
"user_id": "did:privy:cm3abc...",
"version": 2,
"request_hash": "sha256:a3f4b2c...",
"book_seq": 0,
"status": "active",
"bet_amount": 50,
"expires_at": "2026-06-01T18:46:10.000Z",
"legs": [
{
"id": "8ccf2c5d-3a61-4707-93f2-b6f0a0f0c0c6",
"event_ticker": "KXBTC-26JUN01",
"market_ticker": "KXBTC-26JUN01-T72500",
"side": "yes",
"venue": "kalshi"
},
{
"id": "d4e5f6a7-8901-23bc-def4-567890abcdef",
"event_ticker": "KXETH-26JUN01",
"market_ticker": "KXETH-26JUN01-T3000",
"side": "no",
"venue": "kalshi"
}
],
"input_legs": [
{"market_ticker": "KXBTC-26JUN01-T72500", "side": "yes", "venue": "kalshi"},
{"market_ticker": "KXETH-26JUN01-T3000", "side": "no", "venue": "kalshi"}
]
}
}
}
Was this page helpful?

