Skip to content

QUOTE_DRIFT

The price moved while the order was being built: the fresh quote is worse than the one the user accepted by more than the tolerance.

HTTP status
409 Conflict
Code
QUOTE_DRIFT

Some protocols re-quote live when an order is created. If the fresh expected output is worse than the stored quote by more than driftToleranceBps (15 by default), the order is not created. details.quote is the fresh quote, details.driftBps how far it moved and details.toleranceBps the tolerance. No funds have moved.

  • Show the user details.quote. If they accept it, create the order again from its id.
  • Don’t raise the tolerance to make this go away: it is what stops a user signing for less than they agreed to.
{ "error": { "code": "QUOTE_DRIFT", "message": "…" } }