This error appears when you attempt to trade an instrument while the market is closed. Every trading instrument is subject to its own trading hours, which include daily breaks in some cases.
Follow the link to learn more about market trading hours and trade instruments while the market is open to avoid this error.