check_double_position# API documentation for tradeexecutor.cli.double_position.check_double_position Python function. check_double_position(state, printer=<built-in function print>, crash=False)[source]# Check that we do not have multiple positions open for the same trading pair. Parameters: printer – Replace with logger.error() for live execution crash – Safety crash - do not allow continue beyond this point if we detect double positions. state (State) – Returns: True if there are double positions Return type: bool