Search in sources :

Example 1 with CalculateCommand

use of com.github.jnidzwetzki.bitfinex.v2.commands.CalculateCommand in project bitfinex-v2-wss-api-java by jnidzwetzki.

the class WalletManager method calculateWalletMarginBalance.

/**
 * Calculate the wallet margin balance for the given currency (e.g., BTC)
 *
 * @param symbol
 * @throws APIException
 */
public void calculateWalletMarginBalance(final String symbol) throws APIException {
    throwExceptionIfUnauthenticated();
    bitfinexApiBroker.sendCommand(new CalculateCommand("wallet_margin_" + symbol));
}
Also used : CalculateCommand(com.github.jnidzwetzki.bitfinex.v2.commands.CalculateCommand)

Example 2 with CalculateCommand

use of com.github.jnidzwetzki.bitfinex.v2.commands.CalculateCommand in project bitfinex-v2-wss-api-java by jnidzwetzki.

the class WalletManager method calculateWalletFundingBalance.

/**
 * Calculate the wallet funding balance for the given currency (e.g., BTC)
 *
 * @param symbol
 * @throws APIException
 */
public void calculateWalletFundingBalance(final String symbol) throws APIException {
    throwExceptionIfUnauthenticated();
    bitfinexApiBroker.sendCommand(new CalculateCommand("wallet_funding_" + symbol));
}
Also used : CalculateCommand(com.github.jnidzwetzki.bitfinex.v2.commands.CalculateCommand)

Aggregations

CalculateCommand (com.github.jnidzwetzki.bitfinex.v2.commands.CalculateCommand)2