Generally speaking, if the interest rate of the former currency in a currency pair is higher than that of the latter currency, you will get interest when you buy it and pay interest when you sell it, such as GBP/JPY USD/JPY GBP/CHF.
On the other hand, if the interest rate of the former currency is lower than the interest rate of the latter currency, then interest should be paid when buying and when selling, such as euro/Australian dollar euro/US dollar euro/pound.
However, if the interest rates of the two currencies are very close and the spread charged by foreign exchange companies is very large, then no matter how much they sell, they have to pay interest, such as GBP/USD.
The interest rate policies of different companies are very different. Some companies even have to pay interest regardless of the buying and selling of any currency pair, which is a great burden for long-term operation and multi-day positions.
I specialize in portfolio arbitrage, so I know more about interest. If you have more questions, please send me a message or QQ me.