validate_execution_buffer

Documentation for eth_defi.gmx.execution_buffer.validate_execution_buffer function.

validate_execution_buffer(execution_buffer)

Check the execution buffer value and log warnings if it is dangerously low.

This does not raise an exception — it only emits log messages so that the caller can proceed with the order while being informed of the risk.

Parameters

execution_buffer (float) – The multiplier to validate. Values below EXECUTION_BUFFER_CRITICAL_THRESHOLD (1.2) will emit a critical error; values below EXECUTION_BUFFER_WARNING_THRESHOLD (1.5) will emit a warning.

Return type

None