market monitor function