net.sealake.binance.api.client.domain.account.AssetBalance Maven / Gradle / Ivy
package net.sealake.binance.api.client.domain.account;
import net.sealake.binance.api.client.constant.BinanceApiConstants;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* An asset balance in an Account.
*
* @see Account
*/
public class AssetBalance {
/**
* Asset symbol.
*/
private String asset;
/**
* Available balance.
*/
private String free;
/**
* Locked by open orders.
*/
private String locked;
public String getAsset() {
return asset;
}
public void setAsset(String asset) {
this.asset = asset;
}
public String getFree() {
return free;
}
public void setFree(String free) {
this.free = free;
}
public String getLocked() {
return locked;
}
public void setLocked(String locked) {
this.locked = locked;
}
@Override
public String toString() {
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
.append("asset", asset)
.append("free", free)
.append("locked", locked)
.toString();
}
}