By Admin on Thursday, 28 July 2022
Category: All

Binance Wallet API

​From sgcWebSockets 2022.7.0 the Binance Wallet API is supported, this means you can request Withdraw, view the deposit history, withdraw history and more.

https://binance-docs.github.io/apidocs/spot/en/#wallet-endpoints

Wallet Methods

Method Description
GetWalletSystemStatus Fetch system status.
GetWalletAllCoinsInformation Get information of coins (available for deposit and withdraw) for user.
GetWalletDailyAccountSnapshot Type: "SPOT", "MARGIN", "FUTURES"
  • The query time period must be less then 30 days
  • Support query within the last one month only
  • If startTimeand endTime not sent, return records of the last 7 days by default
SetWalletDisableFastWithdrawSwitch This request will disable fastwithdraw switch under your account.
You need to enable "trade" option for the api key which requests this endpoint.
SetWalletEnableFastWithdrawSwitch This request will enable fastwithdraw switch under your account.
You need to enable "trade" option for the api key which requests this endpoint.
When Fast Withdraw Switch is on, transferring funds to a Binance account will be done instantly. There is no on-chain transaction, no transaction ID and no withdrawal fee.
WalletWithdraw

Submit a withdraw request.

GetWalletDepositHistory Fetch deposit history.
GetWalletWithdrawHistory Fetch Withdraw history.
GetWalletDepositAddress Fetch deposit address with network.
GetWalletAccountStatus Fetch account status detail.
GetWalletAccountAPITradingStatus Fetch account api trading status detail.
GetWalletDustLog Only return last 100 records
Only return records after 2020/12/01
GetWalletAssetsConvertedBNB
WalletDustTransfer

Convert dust assets to BNB.

You need to openEnable Spot & Margin Trading permission for the API Key which requests this endpoint.

GetWalletAssetDividendRecord Query asset dividend record.
GetWalletAssetDetail Fetch details of assets supported on Binance.
GetWalletTradeFee Fetch trade fee
WalletUserUniversalTransfer

You need to enable Permits Universal Transfer option for the API Key which requests this endpoint.MAIN_UMFUTURE Spot account transfer to USDⓈ-M Futures account

ENUM of Type:

  • MAIN_CMFUTURE Spot account transfer to COIN-M Futures account
  • MAIN_MARGIN Spot account transfer to Margin(cross)account
  • UMFUTURE_MAIN USDⓈ-M Futures account transfer to Spot account
  • UMFUTURE_MARGIN USDⓈ-M Futures account transfer to Margin(cross)account
  • CMFUTURE_MAIN COIN-M Futures account transfer to Spot account
  • CMFUTURE_MARGIN COIN-M Futures account transfer to Margin(cross) account
  • MARGIN_MAIN Margin(cross)account transfer to Spot account
  • MARGIN_UMFUTURE Margin(cross)account transfer to USDⓈ-M Futures
  • MARGIN_CMFUTURE Margin(cross)account transfer to COIN-M Futures
  • ISOLATEDMARGIN_MARGIN Isolated margin account transfer to Margin(cross) account
  • MARGIN_ISOLATEDMARGIN Margin(cross) account transfer to Isolated margin account
  • ISOLATEDMARGIN_ISOLATEDMARGIN Isolated margin account transfer to Isolated margin account
  • MAIN_FUNDING Spot account transfer to Funding account
  • FUNDING_MAIN Funding account transfer to Spot account
  • FUNDING_UMFUTURE Funding account transfer to UMFUTURE account
  • UMFUTURE_FUNDING UMFUTURE account transfer to Funding account
  • MARGIN_FUNDING MARGIN account transfer to Funding account
  • FUNDING_MARGIN Funding account transfer to Margin account
  • FUNDING_CMFUTURE Funding account transfer to CMFUTURE account
  • CMFUTURE_FUNDING CMFUTURE account transfer to Funding account
GetWalletQueryUserUniversalTransferHistory
  • fromSymbol must be sent when type are ISOLATEDMARGIN_MARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN
  • toSymbol must be sent when type are MARGIN_ISOLATEDMARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN
  • Support query within the last 6 months only
  • If startTimeand endTime not sent, return records of the last 7 days by default
GetWalletFundingWallet Currently supports querying the following business assets:Binance Pay, Binance Card, Binance Gift Card, Stock Token
GetWalletUserAsset Get user assets, just for positive data.
GetWalletApiKeyPermission

Example 

Binance allows to use the Wallet API to submit a Withdraw request, only the followin parameters are mandatory:

Find below a compiled Binance demo for Windows which shows the main features of the API client. Select the Wallet tab to test the Binance Wallet methods. 

Related Posts