The stock market ended the week on a negative note, with both the Sensex and Nifty closing in the red on Friday.