The stock market closed out the week with modest gains Friday as two major developments buoyed investor sentiment. Elon Musk's SpaceX completed its initial public offering, pushing his net worth past the $1 trillion mark for the first time. The aerospace company's debut on public markets attracted significant investor interest, with shares opening strong on their first day of trading.

Separately, progress on a Middle East peace initiative added to the optimistic mood. Negotiations around the Hormuz region showed signs of moving forward, reducing geopolitical tension that has weighed on markets in recent months. When conflict risks ease, investors tend to shift money back into stocks rather than holding defensive positions.

The combination of these two factors created enough momentum to push major indexes higher, though gains remained subdued. This pattern reflects the current market environment where investors are selectively buying on good news but remain cautious about broader economic conditions.

For ordinary savers and investors, the SpaceX IPO represents a rare opportunity to own shares in a private company that has now gone public. This marks one of the year's largest IPO events. Those interested in space and technology exposure can now add SpaceX to their brokerage accounts through standard equity purchases, though newly public companies often experience volatility in their first weeks of trading.

The geopolitical calm also matters for your portfolio. When Middle East tensions ease, oil prices typically fall, which benefits consumers at the pump and helps keep inflation pressures down. Lower energy costs ripple through the broader economy, supporting corporate profits and making stocks more attractive relative to bonds.

For investors currently sitting on cash or considering rebalancing their portfolios, modest market gains like Friday's can signal good entry points. However, the cautious tone suggests larger moves may be ahead as markets digest these developments.