pub struct PrivateClient { /* private fields */ }Expand description
Client for the authenticated /sapi/v1/{capital,account,asset}/* surface.
Wallet has no public endpoints — for unauthenticated market data
(klines, depth, tickers) and connectivity (/api/v3/ping, /api/v3/time),
use crate::spot::http::PublicClient.
Implementations§
Source§impl PrivateClient
impl PrivateClient
pub fn new(cfg: PrivateConfig) -> Self
Source§impl PrivateClient
impl PrivateClient
Sourcepub async fn get_all_coins(
&self,
params: GetAllCoinsParams,
) -> Result<Response<Vec<CoinInfo>>, Error>
pub async fn get_all_coins( &self, params: GetAllCoinsParams, ) -> Result<Response<Vec<CoinInfo>>, Error>
List every coin the account can hold, with per-network deposit and withdraw configuration. Heavyweight (often >300 coins); cache it.
Sourcepub async fn get_deposit_address(
&self,
params: GetDepositAddressParams,
) -> Result<Response<DepositAddress>, Error>
pub async fn get_deposit_address( &self, params: GetDepositAddressParams, ) -> Result<Response<DepositAddress>, Error>
Fetch the deposit address for a coin (optionally on a specific network).
Sourcepub async fn get_deposit_history(
&self,
params: GetDepositHistoryParams,
) -> Result<Response<Vec<Deposit>>, Error>
pub async fn get_deposit_history( &self, params: GetDepositHistoryParams, ) -> Result<Response<Vec<Deposit>>, Error>
Recent deposit history. Defaults: last 90 days, up to 1000 records.
Sourcepub async fn get_withdraw_history(
&self,
params: GetWithdrawHistoryParams,
) -> Result<Response<Vec<Withdraw>>, Error>
pub async fn get_withdraw_history( &self, params: GetWithdrawHistoryParams, ) -> Result<Response<Vec<Withdraw>>, Error>
Recent withdraw history. Defaults: last 90 days, up to 1000 records.
Source§impl PrivateClient
impl PrivateClient
Sourcepub async fn get_account_status(
&self,
params: GetAccountStatusParams,
) -> Result<Response<AccountStatus>, Error>
pub async fn get_account_status( &self, params: GetAccountStatusParams, ) -> Result<Response<AccountStatus>, Error>
Coarse account-wide status string ("Normal", "Margin Account dormant", …).
Source§impl PrivateClient
impl PrivateClient
Sourcepub async fn get_trade_fee(
&self,
params: GetTradeFeeParams,
) -> Result<Response<Vec<TradeFee>>, Error>
pub async fn get_trade_fee( &self, params: GetTradeFeeParams, ) -> Result<Response<Vec<TradeFee>>, Error>
Maker / taker commission rates per symbol. Omit symbol to fetch all.
Auto Trait Implementations§
impl Freeze for PrivateClient
impl RefUnwindSafe for PrivateClient
impl Send for PrivateClient
impl Sync for PrivateClient
impl Unpin for PrivateClient
impl UnsafeUnpin for PrivateClient
impl UnwindSafe for PrivateClient
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