renamed check() to onMarketUpdate()