pub fn validate_order( config: &SafetyConfig, order: &Value, preview: Option<&Value>, account_equity: Option<f64>, ) -> Result<()>