The domestic stock markets ended in red territory after a volatile session on Tuesday, failing to hold the opening gains.