Search in sources :

Example 1 with BiboxOrderHistoryCommand

use of org.knowm.xchange.bibox.dto.trade.BiboxOrderHistoryCommand in project XChange by knowm.

the class BiboxTradeServiceRaw method getBiboxOrderHistory.

public BiboxOrders getBiboxOrderHistory() {
    try {
        BiboxOrderPendingListCommandBody body = new BiboxOrderPendingListCommandBody(1, // wonder if this actually works
        Integer.MAX_VALUE);
        BiboxOrderHistoryCommand cmd = new BiboxOrderHistoryCommand(body);
        BiboxSingleResponse<BiboxOrders> response = bibox.orderPendingList(BiboxCommands.of(cmd).json(), apiKey, signatureCreator);
        throwErrors(response);
        return response.get().getResult();
    } catch (BiboxException e) {
        throw new ExchangeException(e.getMessage());
    }
}
Also used : BiboxOrderHistoryCommand(org.knowm.xchange.bibox.dto.trade.BiboxOrderHistoryCommand) BiboxOrders(org.knowm.xchange.bibox.dto.trade.BiboxOrders) ExchangeException(org.knowm.xchange.exceptions.ExchangeException) BiboxOrderPendingListCommandBody(org.knowm.xchange.bibox.dto.trade.BiboxOrderPendingListCommandBody) BiboxException(org.knowm.xchange.bibox.BiboxException)

Aggregations

BiboxException (org.knowm.xchange.bibox.BiboxException)1 BiboxOrderHistoryCommand (org.knowm.xchange.bibox.dto.trade.BiboxOrderHistoryCommand)1 BiboxOrderPendingListCommandBody (org.knowm.xchange.bibox.dto.trade.BiboxOrderPendingListCommandBody)1 BiboxOrders (org.knowm.xchange.bibox.dto.trade.BiboxOrders)1 ExchangeException (org.knowm.xchange.exceptions.ExchangeException)1