A swap is the interest paid or earned for holding a trading position overnight. It is based on interest rate differentials between currencies or instruments.