Skip to main content
Version: 2.x

Wallet

 License: MIT 

Installation

pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>

Client instantiation

WalletClient client = new WalletClient(key, secret);

Features

Get system status

try{
SystemStatus res = client.getSystemStatus().sync();
}catch(ApiException e){
//...
}

Get all coins info

try{
CoinInformation> res = client.getAllCoinsInfo().sync();
}catch(ApiException e){
//...
}

Get Spot account snapshot

try{
SpotAccountSnapshotResponse res = client.getSpotAccountSnapshot().sync();
}catch(ApiException e){
//...
}

Get Margin account snapshot

try{
MarginAccountSnapshotResponse res = client.getMarginAccountSnapshot().sync();
}catch(ApiException e){
//...
}

Get Futures account snapshot

try{
FuturesAccountSnapshotResponse res = client.getFuturesAccountSnapshot().sync();
}catch(ApiException e){
//...
}

Enable fast withdraw switch

try{
client.enableFastWithdrawSwitch().sync();
}catch(ApiException e){
//...
}

Disable fast withdraw switch

try{
client.disableFastWithdrawSwitch().sync();
}catch(ApiException e){
//...
}

Withdraw

try{
WithdrawResult res = client.withdraw(new WithdrawParams(amount, asset, address)).sync();
}catch(ApiException e){
//...
}

Get deposit history

try{
List<DepositHistory> res = client.getDepositHistory().sync();
}catch(ApiException e){
//...
}

Get withdraw history

try{
List<WithdrawHistory> res = client.getWithdrawHistory().sync();
}catch(ApiException e){
//...
}

Get deposit address

try{
DepositAddress res = client.getDepositAddress().sync();
}catch(ApiException e){
//...
}

Get account status

try{
AccountStatus res = client.getAccountstatus().sync();
}catch(ApiException e){
//...
}

Get API trading status

try{
ApiTradingStatus res = client.getApiTradingStatus().sync();
}catch(ApiException e){
//...
}

Get dust log

try{
DustLog res = client.getDustLog().sync();
}catch(ApiException e){
//...
}

Do a dust transfer

try{
DustTransferResponse res = client.dustTransfer().sync();
}catch(ApiException e){
//...
}

Get asset dividend record

try{
AssetDividendRecord res = client.getAssetDividendRecord().sync();
}catch(ApiException e){
//...
}

Get asset detail

try{
Map<String, AssetDetail> res = client.getAssetDetail().sync();
}catch(ApiException e){
//...
}

Get trade fee

try{
List<TradeFee> res = client.getTradeFee().sync();
}catch(ApiException e){
//...
}

Make a universal transfer

try{
WalletTransferResponse res = client.transfer(new WalletTransferParams(asset, type, amount, fromSymbol, toSymbol)).sync();
}catch(ApiException e){
//...
}

Get transfer history

try{
WalletTransferHistory res = client.getTransferHistory(new WalletTransferHistoryParams(type, fromSymbol, toSymbol)).sync();
}catch(ApiException e){
//...
}

Get funding asset

Fetches the funding wallet asset balance

Currently supports querying the following business assets:Binance Pay, Binance Card, Binance Gift Card, Stock Token

try{
List<FundingAsset> res = client.getFundingWallet().sync();
}catch(ApiException e){
//...
}

Get API permissions

try{
ApiPermissions res = client.getApiPermissions().sync();
}catch(ApiException e){
//...
}