@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws IOException { throw new NotAvailableFromExchangeException(); } }
@Override public boolean cancelOrder(String orderId) throws IOException { throw new ExchangeException( "You need to provide the currency pair, the order id and the order type to cancel an order."); }
/** * Create {@link TradeHistoryParams} object specific to this exchange. Object created by this * method may be used to discover supported and required {@link * #getTradeHistory(TradeHistoryParams)} parameters and should be passed only to the method in the * same class as the createTradeHistoryParams that created the object. */ default TradeHistoryParams createTradeHistoryParams() { throw new NotYetImplementedForExchangeException(); }
protected ExchangeException handleError(BitflyerException exception) { if (exception.getMessage().contains("Insufficient")) { return new FundsExceededException(exception); } else if (exception.getMessage().contains("Rate limit exceeded")) { return new RateLimitExceededException(exception); } else if (exception.getMessage().contains("Internal server error")) { return new InternalServerException(exception); } else { return new ExchangeException(exception); } } }
/** {@inheritDoc} */ @Override public String withdrawFunds(Currency currency, BigDecimal amount, String address) { throw new NotAvailableFromExchangeException(); }
protected ExchangeException handleError(CoinbaseProException exception) { if (exception.getMessage().contains("Insufficient")) { return new FundsExceededException(exception); } else if (exception.getMessage().contains("Rate limit exceeded")) { return new RateLimitExceededException(exception); } else if (exception.getMessage().contains("Internal server error")) { return new InternalServerException(exception); } else { return new ExchangeException(exception); } } }
public static BiboxOrderSide fromOrderType(OrderType orderType) { switch (orderType) { case BID: return BiboxOrderSide.BID; case ASK: return BiboxOrderSide.ASK; default: throw new ExchangeException("Order type " + orderType + " unsupported."); } }
@Override public OpenOrdersParams createOpenOrdersParams() { throw new NotYetImplementedForExchangeException( "This operation is not yet implemented for this exchange"); }
@Override public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException { throw new NotAvailableFromExchangeException(); }
/** * This returns the currently set deposit address. It will not generate a new address (ie. * repeated calls will return the same address). */ @Override public String requestDepositAddress(Currency currency, String... arguments) throws IOException { CryptonitDepositAddress response = null; throw new NotYetImplementedForExchangeException(); // return response.getDepositAddress(); }
@Override public Trades getTrades(CurrencyPair currencyPair, final Object... args) { throw new NotAvailableFromExchangeException(); } }
@Override public Collection<Order> getOrder(String... orderIds) throws IOException { throw new NotYetImplementedForExchangeException( "This operation is not yet implemented for this exchange"); }
@Override public Collection<Order> getOrder(String... arg0) throws IOException { throw new NotAvailableFromExchangeException(); } }
@Override public String placeStopOrder(StopOrder arg0) throws IOException { throw new NotYetImplementedForExchangeException( "This operation is not yet implemented for this exchange"); } }
@Override public TradeHistoryParams createFundingHistoryParams() { throw new NotAvailableFromExchangeException(); } }
@Override public TradeHistoryParams createFundingHistoryParams() { throw new NotAvailableFromExchangeException(); } }
@Override public Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException { throw new NotAvailableFromExchangeException(); } }
@Override public TradeHistoryParams createFundingHistoryParams() { throw new NotAvailableFromExchangeException(); } }
@Override public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException { throw new NotAvailableFromExchangeException(); }
@Override public TradeHistoryParams createFundingHistoryParams() { throw new NotAvailableFromExchangeException(); } }