Skip to main content
In /quote and /quoteBest you can pass a parameter showDangerousRoutes: false to filter routes with priceImpact more than -5% and less than +20% and slippage more than 20%(slippage: 0.2). Price impact is estimated as:
By default showDangerousRoutes is optional property and set to false. If you pass showDangerousRoutes: true - you will receive in response every route that was successully found in spite of priceImpact and slippage values. Example of request to show only safe routes: