utility for isMarketOpen