pub struct LeverageFilter {
pub min_leverage: f64,
pub max_leverage: f64,
pub leverage_step: f64,
}Expand description
Leverage constraints for a futures instrument.
Specifies the allowable leverage settings for a perpetual futures contract. Bots must adhere to these to set valid leverage levels and manage risk.
Fields§
§min_leverage: f64The minimum leverage allowed.
The lowest leverage setting for the contract (e.g., "1" for 1x). Bots must ensure leverage settings are at least this value to avoid API errors. Low leverage reduces risk but also potential returns.
max_leverage: f64The maximum leverage allowed.
The highest leverage setting (e.g., "100" for 100x). High leverage amplifies gains and losses in perpetual futures, increasing liquidation risk. Bots should use this to cap leverage based on risk tolerance.
leverage_step: f64The leverage step size.
The increment for leverage adjustments (e.g., "0.1"). Bots must set leverage in multiples of this step to comply with Bybit’s rules.
Trait Implementations§
Source§impl Clone for LeverageFilter
impl Clone for LeverageFilter
Source§fn clone(&self) -> LeverageFilter
fn clone(&self) -> LeverageFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more