The method of currency trade mentioned in the question i.e. as soon as the deal is finalised, the currencies of both sides are transferred in the accounts of the buyer and seller. If this is the case, then this transaction is lawful as per the Shariah and its profit is halal.
Allah knows Best!
Darul Uloom Deoband