validate_state_serialisation#

API documentation for tradeexecutor.state.validator.validate_state_serialisation Python function.

validate_state_serialisation(state)[source]#

Check that we can write the state to the disk,

Unlike json.dump() gives user friendly error messages.

Raises:

BadStateData – In the case we have sneaked something into the state that does not belong there.

Parameters:

state (State) –