pub struct Savings {
pub client: Client,
pub recv_window: u64,
}
Fields§
§client: Client
§recv_window: u64
Implementations§
source§impl Savings
impl Savings
sourcepub fn get_all_coins(&self) -> Result<Vec<CoinInfo>>
pub fn get_all_coins(&self) -> Result<Vec<CoinInfo>>
Get all coins available for deposit and withdrawal
sourcepub fn asset_detail(
&self,
asset: Option<String>
) -> Result<BTreeMap<String, AssetDetail>>
pub fn asset_detail( &self, asset: Option<String> ) -> Result<BTreeMap<String, AssetDetail>>
Fetch details of assets supported on Binance.
sourcepub fn deposit_address<S>(
&self,
coin: S,
network: Option<String>
) -> Result<DepositAddress>
pub fn deposit_address<S>( &self, coin: S, network: Option<String> ) -> Result<DepositAddress>
Fetch deposit address with network.
You can get the available networks using get_all_coins
.
If no network is specified, the address for the default network is returned.
pub fn transfer_funds<S>( &self, asset: S, amount: f64, transfer_type: SpotFuturesTransferType ) -> Result<TransactionId>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Savings
impl Send for Savings
impl Sync for Savings
impl Unpin for Savings
impl !UnwindSafe for Savings
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