Stock market today: Investors snap losing streak as market heads to the end of a stellar first quarter