The ASX traded lower as renewed US-Iran tensions lifted oil prices, weighing on mining and banking stocks while energy and technology sectors outperformed.