When conducting foreign exchange transactions through banks, the prices of buying and selling the same currency at the same time are different. Banks sell at high prices and buy at low prices, and the difference between them is the income of banks. Therefore, no matter where you buy foreign exchange and sell it immediately, you will lose money.
As long as you buy foreign exchange, you can sell it immediately, and the bank will not restrict you.