Markets end day higher after Monday sell-off