curl -X DELETE https://api.totalis.trade/v1/mm/quote-requests/1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40/quote \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request_version": 1,
"request_hash": "sha256:9f86d08..."
}'
# No response body
Market maker
Withdraw quote
Withdraw your active quote from a quote request before the user commits it.
DELETE
/
v1
/
mm
/
quote-requests
/
{id}
/
quote
curl -X DELETE https://api.totalis.trade/v1/mm/quote-requests/1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40/quote \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request_version": 1,
"request_hash": "sha256:9f86d08..."
}'
# No response body
Withdraw your active quote from a quote request. If the quote already expired naturally, you get
already_expired instead of an error.
Withdraw only to retract a current-version quote you no longer want to honor, for example when your price moved before the user committed. A
version change needs no withdraw: your prior-version quote is invalidated automatically. To quote the new version, submit again with the new request_version and request_hash.Authentication
API key required. Pass your API key in theX-API-Key header.
X-API-Key: <key>
Path parameters
string
required
The quote request ID (UUID).
Request body (optional)
integer
The request version your quote was submitted for. Defaults to the current version.
string
The request hash your quote was submitted for. Defaults to the current hash.
Response
Returns204 No Content when the quote is withdrawn, or 200 OK if it had already expired naturally:
{
"data": {
"status": "already_expired"
}
}
Errors
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 404 | NOT_FOUND | Quote request not found. |
| 409 | CONFLICT | No active quote to withdraw, request expired, no longer active, or version mismatch. See details.reason. |
curl -X DELETE https://api.totalis.trade/v1/mm/quote-requests/1a6d1f06-9d4f-47cb-994b-3bdfbbef7e40/quote \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request_version": 1,
"request_hash": "sha256:9f86d08..."
}'
# No response body
Was this page helpful?

