Skip to main content
POST
/
mm
/
quotes
/
{quoteId}
/
confirm
curl -X POST https://api.totalis.trade/mm/quotes/d4e5f6a7-8901-bcde-f234-567890abcdef/confirm \
  -H "X-API-Key: $API_KEY"
{
  "data": {
    "status": "confirmed",
    "quote_id": "d4e5f6a7-8901-bcde-f234-567890abcdef",
    "execution_id": "exec-a1b2c3d4e5f6"
  }
}
Confirm an accepted quote to finalize the trade. This triggers an atomic Solana transaction that locks the user’s stake and your collateral in their respective vaults. You receive a quote:accepted WebSocket event when a user commits your quote. You must confirm before the confirmation_deadline returned in that event. The selected market maker may also receive mm_quote:accepted on the same mm:quotes:{mm_id} channel with richer quote economics and exposure_legs; use it for local risk reservation or analytics. Both events carry the same accepted quote_id, and either value is valid for confirmation. Do not rely on delivery order between the two events. If you miss the deadline, the trade is unwound and the RFQ reopens for other market makers. Base URL: https://api.totalis.trade

Authentication

API key required. Pass your market maker API key in the X-API-Key header.
X-API-Key: <key>

Path Parameters

quoteId
string
required
The accepted quote ID (UUID). This is the quote_id from the quote:accepted WebSocket event, and matches quote_id on the optional mm_quote:accepted detail event.

Request Body

No request body required.

Response

data
object

Errors

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid API key.
403FORBIDDENYou do not own this quote.
404NOT_FOUNDQuote not found.
409CONFLICTQuote is not in accepted status (already confirmed, expired, or cancelled).
409CONFLICTInsufficient balance. Your aggregate risk across pending positions exceeds your available USDC (wallet + vault free balance).
503SERVICE_UNAVAILABLEUnable to verify your balance. Retry after a short delay.
curl -X POST https://api.totalis.trade/mm/quotes/d4e5f6a7-8901-bcde-f234-567890abcdef/confirm \
  -H "X-API-Key: $API_KEY"
{
  "data": {
    "status": "confirmed",
    "quote_id": "d4e5f6a7-8901-bcde-f234-567890abcdef",
    "execution_id": "exec-a1b2c3d4e5f6"
  }
}