Get faster quote responses by using fast-quote mode
By default, the Biconomy API performs an exhaustive query across all underlying liquidity providers (DEXs, aggregators, bridges) to find the optimal route for your swap. While this ensures the best possible price, it takes longer to respond.For applications where speed is more important than finding the absolute best price, you can use fast-quote mode to get the first viable quote immediately.
A common pattern is to use fast-quote for UI previews, then fetch a full quote before execution:
Copy
Ask AI
// Fast quote for immediate UI feedbackconst previewQuote = await getQuote({ ...params, data: { ...data, routeSelectionMode: "fast-quote" }});// Show preview to userdisplayQuote(previewQuote);// When user clicks "Swap", get optimized quote for executionconst executionQuote = await getQuote({ ...params // No routeSelectionMode = exhaustive search});// Execute with best priceawait executeQuote(executionQuote);
Fast-quote mode typically reduces response times significantly, especially for cross-chain swaps where multiple bridge providers need to be queried.