At the end of each day (5pm for forex), you have positions (positive or negative) in each currency. For a currency with a positive balance, you will potentially be paid interest. For a currency with a negative balance, you will be charged margin interest.
So, if you buy 1,000,000 Euro...