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.
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.
What to do
Section titled “What to do”- Show the user
details.quote. If they accept it, create the order again from itsid. - Don’t raise the tolerance to make this go away: it is what stops a user signing for less than they agreed to.
Example response
Section titled “Example response”{ "error": { "code": "QUOTE_DRIFT", "message": "…" } }