Skip to main content

is_slippage_rejection

Function is_slippage_rejection 

Source
pub fn is_slippage_rejection(error_code: &str) -> bool
Expand description

Returns true if the OKX sCode identifies a slippage-related rejection emitted in response to the slippagePct parameter on market orders.