use of org.knowm.xchange.bibox.dto.trade.BiboxOrders 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());
}
}
use of org.knowm.xchange.bibox.dto.trade.BiboxOrders in project XChange by knowm.
the class BiboxTradeServiceRaw method getBiboxOpenOrders.
public BiboxOrders getBiboxOpenOrders(Integer page) {
try {
BiboxOrderPendingListCommandBody body = new BiboxOrderPendingListCommandBody(page == null ? 1 : page, // wonder if this actually works
Integer.MAX_VALUE);
BiboxOrderPendingListCommand cmd = new BiboxOrderPendingListCommand(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());
}
}
Aggregations