use of org.knowm.xchange.bibox.BiboxException in project XChange by knowm.
the class BiboxAccountServiceRaw method requestBiboxDeposits.
public BiboxPage<BiboxDeposit> requestBiboxDeposits(BiboxFundsCommandBody body) {
try {
BiboxPagedResponses<BiboxDeposit> response = bibox.transferInList(BiboxCommands.depositsCommand(body).json(), apiKey, signatureCreator);
throwErrors(response);
BiboxPage<BiboxDeposit> page = response.get().getResult();
return page;
} catch (BiboxException e) {
throw new ExchangeException(e.getMessage());
}
}
use of org.knowm.xchange.bibox.BiboxException in project XChange by knowm.
the class BiboxAccountServiceRaw method requestBiboxDepositAddress.
public String requestBiboxDepositAddress(Currency currency) {
try {
BiboxSingleResponse<String> response = bibox.depositAddress(BiboxCommands.depositAddressCommand(currency.getCurrencyCode()).json(), apiKey, signatureCreator);
throwErrors(response);
return response.get().getResult();
} catch (BiboxException e) {
throw new ExchangeException(e.getMessage());
}
}
use of org.knowm.xchange.bibox.BiboxException in project XChange by knowm.
the class BiboxAccountServiceRaw method requestBiboxWithdraw.
public void requestBiboxWithdraw(BiboxTransferCommandBody body) {
try {
BiboxSingleResponse<String> response = bibox.transfer(BiboxCommands.transferCommand(body).json(), apiKey, signatureCreator);
throwErrors(response);
} catch (BiboxException e) {
throw new ExchangeException(e.getMessage());
}
}
use of org.knowm.xchange.bibox.BiboxException in project XChange by knowm.
the class BiboxMarketDataServiceRaw method getBiboxDeals.
public List<BiboxDeals> getBiboxDeals(CurrencyPair currencyPair, Integer depth) throws IOException {
try {
BiboxResponse<List<BiboxDeals>> response = bibox.deals(DEALS_CMD, BiboxAdapters.toBiboxPair(currencyPair), depth);
throwErrors(response);
return response.getResult();
} catch (BiboxException e) {
throw new ExchangeException(e.getMessage(), e);
}
}
use of org.knowm.xchange.bibox.BiboxException in project XChange by knowm.
the class BiboxMarketDataServiceRaw method getAllBiboxMarkets.
public List<BiboxMarket> getAllBiboxMarkets() throws IOException {
try {
BiboxResponse<List<BiboxMarket>> response = bibox.marketAll(ALL_TICKERS_CMD);
throwErrors(response);
return response.getResult();
} catch (BiboxException e) {
throw new ExchangeException(e.getMessage());
}
}
Aggregations