Search in sources :

Example 16 with BiboxException

use of org.knowm.xchange.bibox.BiboxException in project XChange by knowm.

the class BiboxAccountServiceRaw method requestBiboxWithdrawals.

public BiboxPage<BiboxWithdrawal> requestBiboxWithdrawals(BiboxFundsCommandBody body) {
    try {
        BiboxPagedResponses<BiboxWithdrawal> response = bibox.transferOutList(BiboxCommands.withdrawalsCommand(body).json(), apiKey, signatureCreator);
        throwErrors(response);
        BiboxPage<BiboxWithdrawal> page = response.get().getResult();
        return page;
    } catch (BiboxException e) {
        throw new ExchangeException(e.getMessage());
    }
}
Also used : BiboxWithdrawal(org.knowm.xchange.bibox.dto.account.BiboxWithdrawal) ExchangeException(org.knowm.xchange.exceptions.ExchangeException) BiboxException(org.knowm.xchange.bibox.BiboxException)

Aggregations

BiboxException (org.knowm.xchange.bibox.BiboxException)16 ExchangeException (org.knowm.xchange.exceptions.ExchangeException)16 List (java.util.List)3 BiboxCommand (org.knowm.xchange.bibox.dto.BiboxCommand)2 BiboxTicker (org.knowm.xchange.bibox.dto.marketdata.BiboxTicker)2 BiboxOrderBook (org.knowm.xchange.bibox.dto.trade.BiboxOrderBook)2 BiboxOrderPendingListCommandBody (org.knowm.xchange.bibox.dto.trade.BiboxOrderPendingListCommandBody)2 BiboxOrders (org.knowm.xchange.bibox.dto.trade.BiboxOrders)2 BiboxTradeCommand (org.knowm.xchange.bibox.dto.trade.BiboxTradeCommand)2 IOException (java.io.IOException)1 Collection (java.util.Collection)1 Objects (java.util.Objects)1 Collectors (java.util.stream.Collectors)1 Exchange (org.knowm.xchange.Exchange)1 BiboxAdapters (org.knowm.xchange.bibox.dto.BiboxAdapters)1 BiboxAdapters.toBiboxPair (org.knowm.xchange.bibox.dto.BiboxAdapters.toBiboxPair)1 BiboxCommands (org.knowm.xchange.bibox.dto.BiboxCommands)1 BiboxMultipleResponses (org.knowm.xchange.bibox.dto.BiboxMultipleResponses)1 BiboxResponse (org.knowm.xchange.bibox.dto.BiboxResponse)1 BiboxAssetsResult (org.knowm.xchange.bibox.dto.account.BiboxAssetsResult)1