format_trailing_stop_info

Function format_trailing_stop_info 

Source
pub fn format_trailing_stop_info(
    offset: &str,
    offset_type: &str,
    callback_price: Option<&str>,
) -> String
Expand description

Converts WebSocket trailing stop data to description string.

§Arguments

  • offset - Trailing offset value
  • offset_type - Type of offset (“price”, “percentage”, “basisPoints”)
  • callback_price - Current callback price

§Returns

Human-readable description of trailing stop parameters.