Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.swaplinq.com/llms.txt

Use this file to discover all available pages before exploring further.

When interacting with the SwaplinQ API, you aren’t just getting an arbitrary exchange rate. You are accessing a dynamic order-routing system built to protect your users from spread manipulation and isolated low-liquidity pools.

The Decision Matrix

The core of our infrastructure is the Smart Routing algorithm. Every time a quote is requested, we rank all available execution paths using a strict weighted matrix:
MetricWeightDescription
Effective Rate (Net)40%Ensures users get the absolute maximum amount of output tokens after all network gas and provider fees are deducted.
Execution Speed20%Providers with slow API responses or congested withdrawal systems are demoted.
Reliability Score20%We track the success/failure rate of the last 1,000 transactions for every provider. Failing providers are temporarily blacklisted.
Liquidity Depth15%We preemptively check if a provider can fulfill large orders without slipping.
Network Congestion5%We monitor EVM mempools. If ETH gas is spiking, cross-chain paths using L2s may be temporarily prioritized.

Fallback Cascade Architecture

Even the best institutional providers occasionally suffer API downtime or wallet exhaustion. SwaplinQ shields you from this entirely via our Fallback Cascade. If the engine ranks Provider A as #1, but Provider A’s execution API returns a 500 error or drops the connection mid-swap, SwaplinQ automatically and instantly re-routes the order to Provider B at the next best rate.
Because of the Fallback Cascade, SwaplinQ guarantees a 99.97% transaction success rate, even during massive market volatility.