def get_market_state(self, **defaults):
        """
        Creates request builder for Market State

        Check the state of all available exchanges, time to open, and time to close. Returns all available stock exchanges by default.

        :returns: request builder instance
        :rtype: MarketStateRequestBuilder
        """
        ctx = Context.from_context(self.ctx)
        ctx.defaults.update(defaults)
        return MarketStateEndpoint(ctx, **ctx.defaults)

        Creates request builder for Market State

        Check the state of all available exchanges, time to open, and time to close. Returns all available stock exchanges by default.

        :returns: request builder instance
        :rtype: MarketStateRequestBuilder
        
src/twelvedata/client.py