pub struct BalanceFetchParams {
pub account_type: Option<AccountType>,
pub margin_mode: Option<String>,
pub symbols: Option<Vec<String>>,
pub portfolio_margin: bool,
pub sub_type: Option<String>,
}Expand description
Balance fetch parameters for Binance.
Fields§
§account_type: Option<AccountType>Account type to query (spot, margin, futures, etc.).
margin_mode: Option<String>Margin mode: “cross” or “isolated”.
symbols: Option<Vec<String>>Symbols for isolated margin (e.g., ["BTC/USDT", "ETH/USDT"]).
portfolio_margin: boolWhether to use Portfolio Margin API.
sub_type: Option<String>Sub-type for futures: “linear” or “inverse”.
Implementations§
Source§impl BalanceFetchParams
impl BalanceFetchParams
Sourcepub fn cross_margin() -> Self
pub fn cross_margin() -> Self
Create params for cross margin balance.
Sourcepub fn isolated_margin(symbols: Option<Vec<String>>) -> Self
pub fn isolated_margin(symbols: Option<Vec<String>>) -> Self
Create params for isolated margin balance.
Sourcepub fn linear_futures() -> Self
pub fn linear_futures() -> Self
Create params for USDT-margined futures (linear).
Sourcepub fn inverse_futures() -> Self
pub fn inverse_futures() -> Self
Create params for coin-margined futures (inverse/delivery).
Sourcepub fn portfolio_margin() -> Self
pub fn portfolio_margin() -> Self
Create params for portfolio margin.
Trait Implementations§
Source§impl Clone for BalanceFetchParams
impl Clone for BalanceFetchParams
Source§fn clone(&self) -> BalanceFetchParams
fn clone(&self) -> BalanceFetchParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BalanceFetchParams
impl Debug for BalanceFetchParams
Source§impl Default for BalanceFetchParams
impl Default for BalanceFetchParams
Source§fn default() -> BalanceFetchParams
fn default() -> BalanceFetchParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BalanceFetchParams
impl RefUnwindSafe for BalanceFetchParams
impl Send for BalanceFetchParams
impl Sync for BalanceFetchParams
impl Unpin for BalanceFetchParams
impl UnwindSafe for BalanceFetchParams
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