The local stock market ended the fiscal year on a sore note, ending at day lows amid sharp losses for gold miners.