pub struct SwitchCrossIsolatedMarginRequest {
pub category: Category,
pub symbol: String,
pub trade_mode: TradeMode,
pub buy_leverage: Decimal,
pub sell_leverage: Decimal,
}Expand description
Request body of POST /v5/position/switch-isolated (Client::switch_cross_isolated_margin).
Fields§
§category: Categorylinear, inverse
symbol: StringSymbol name.
trade_mode: TradeMode0: cross margin, 1: isolated margin
buy_leverage: Decimal[ 1, max leverage] one-way mode: buyLeverage must be the same as sellLeverage Hedge mode: isolated margin: buyLeverage and sellLeverage can be different; cross margin: buyLeverage must be the same as sellLeverage.
sell_leverage: Decimal[ 1, max leverage].
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwitchCrossIsolatedMarginRequest
impl RefUnwindSafe for SwitchCrossIsolatedMarginRequest
impl Send for SwitchCrossIsolatedMarginRequest
impl Sync for SwitchCrossIsolatedMarginRequest
impl Unpin for SwitchCrossIsolatedMarginRequest
impl UnsafeUnpin for SwitchCrossIsolatedMarginRequest
impl UnwindSafe for SwitchCrossIsolatedMarginRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more