check_double_position#

API documentation for tradeexecutor.cli.double_position.check_double_position Python function.

check_double_position(state, printer=<built-in function print>)[source]#

Check that we do not have multiple positions open for the same trading pair.

Returns:

True if there are double positions

Parameters:

state (State) –

Return type:

bool