How crypto swaps and exchanges work: CEX vs DEX, P2P, fees, slippage, fixed vs floating rates and swap APIs, with comparisons to pick the right route.