pub struct MarginRepay { /* private fields */ }
Expand description
POST /sapi/v1/margin/repay
Repay loan for margin account.
- If “isIsolated” = “TRUE”, “symbol” must be sent
- “isIsolated” = “FALSE” for crossed margin repay
Weight(IP): 3000
Example
use binance_spot_connector_rust::margin;
use rust_decimal_macros::dec;
let request = margin::margin_repay("BTC", dec!(1.01)).symbol("BNBUSDT");
Implementations§
source§impl MarginRepay
impl MarginRepay
pub fn new(asset: &str, amount: Decimal) -> Self
pub fn is_isolated(self, is_isolated: bool) -> Self
pub fn symbol(self, symbol: &str) -> Self
pub fn recv_window(self, recv_window: u64) -> Self
pub fn credentials(self, credentials: &Credentials) -> Self
Trait Implementations§
source§impl From<MarginRepay> for Request
impl From<MarginRepay> for Request
source§fn from(request: MarginRepay) -> Request
fn from(request: MarginRepay) -> Request
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MarginRepay
impl Send for MarginRepay
impl Sync for MarginRepay
impl Unpin for MarginRepay
impl UnwindSafe for MarginRepay
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