Why did this happen?
This error occurs when you attempt to trade an instrument while the market is closed.
How to solve this error?
Every trading instrument is subject to its own trading hours, which include daily breaks in some cases. Trade instruments when the market is open to avoid this error.