The New York Stock Exchange will temporarily shut its trading floors starting Monday and move to fully electronic trading after a trader and an employee both tested positive for coronavirus this week.

The exchange’s equities and options trading floors in New York will close, as will its options trading pit in San Francisco, according to a statement by NYSE owner Intercontinental Exchange Inc.

The company said in a notice to traders that two individuals were screened on Monday and tested positive for coronavirus. The NYSE employee and a person who worked on the trading floor both were barred from entering the building this week and were last inside on Friday.

“Our markets are fully capable of operating in an all-electronic fashion to serve all participants, and we will proceed in that manner until we can re-open our trading floors to our members,” said NYSE President Stacey Cunningham. “While we are taking the precautionary step of closing the trading floors, we continue to firmly believe the markets should remain open and accessible to investors. All NYSE markets will continue to operate under normal trading hours despite the closure of the trading floors.”

The trading floor will remain open this week. On Tuesday, it was “thoroughly sanitized using treatments recommended by federal agencies” and will be again this evening.

The U.S. equity market closed for two days in October 2012 in the aftermath of Hurricane Sandy. NYSE had previously shut for four trading days after the terrorist attacks on Sept. 11, 2001.

Wild swings in equity markets and thousands in the financial industry working from home have led to questions about whether stock exchanges should remain open. But top regulators -- including Treasury Secretary Steven Mnuchin and Securities and Exchange Commission Chairman Jay Clayton -- and executives of exchange firms have come out in favor of keeping markets open.