Markets in Australia and Japan opened with gains on Tuesday, reflecting a broader trend of optimism seen on Wall Street, where the S&P 500 and Nasdaq Composite hit record highs.

This upward momentum appears to be driven by strong earnings reports from major U.S. firms like Apple and Caterpillar, which helped offset concerns over weaker-than-expected economic data and geopolitical tensions in the Middle East.

The focus for investors is now turning to the Federal Reserve's policy decision, which is scheduled for Wednesday night, following the release of the U.S. May inflation report.

The central bank's response to inflationary pressures will likely shape the trajectory of global markets.

Despite the backdrop of rising tensions in the region, particularly with the U.S. signaling potential escalation in Iran, market participants have so far chosen to look past these risks.

This cautious optimism is evident in the performance of the ASX 200 and the Nikkei 225, both of which are trading higher.