The swap API is used to generate a funding address for the swap without specifying the source amount and without the rate locking limitation of a transfer. Normally, transfers have their totals and rates locked upfront; however, the swap API can allow you to defer calculating the total amount until the funds arrive.