How routing works
What the router considers, and how it picks.
Every quote builds a set of complete candidate routes, prices each from end to end, and returns the one that lands the most.
Local currency → token
Find usable ads. Pull live ads from every venue for the currency, at your exact amount, on your rail. Keep ads whose limits fit the amount, that hold enough USDT, with at least 90% completion and 50 completed orders.
Screen counterparties. The six best-priced usable ads get their terms screened. Ads that fail are dropped.
Leave the venue. For the best ad on each venue, price a withdrawal on every network (Tron, BNB Chain, Ethereum, Solana, TON) using that venue's fees.
Swap to the destination. For each network, ask Relay and NEAR Intents to swap USDT into the destination asset and keep the cheaper, gas included.
Rank. Sort every venue × network route by amount landed. Return the best and up to four distinct alternatives.
Token → local currency
The mirror image: swap into USDT on each network, deposit to a venue (venues don't charge for deposits), then sell to the best usable bid on your rail.
Local currency → local currency
Buy USDT with the first currency and sell it for the second, either on one venue (no withdrawal, no network fee) or across venues, moving USDT on the venue's cheapest network. Whichever lands more wins. In live tests, buying shillings on Binance and selling naira on Bybit beat staying on one venue by 8 bps.
What the router won't do
It won't route through an ad it can't fill at your size, an ad with failing terms, or a network the venue has disabled. If nothing is left, you get a 422 naming how many ads were excluded and why.