public BitZTradeAddResult placeBitZTrade( CurrencyPair currencyPair, BitZPublicOrder limitOrder, Date time, boolean sell) throws IOException { throw new NotYetImplementedForExchangeException(); }
@Override public String placeStopOrder(org.knowm.xchange.dto.trade.StopOrder stopOrder) throws java.io.IOException { throw new NotYetImplementedForExchangeException(); }
/** * Create {@link OpenOrdersParams} object specific to this exchange. Object created by this method * may be used to discover supported and required {@link #getOpenOrders(OpenOrdersParams)} * parameters and should be passed only to the method in the same class as the * createOpenOrdersParams that created the object. */ default OpenOrdersParams createOpenOrdersParams() { throw new NotYetImplementedForExchangeException(); }
@Override public Collection<Order> getOrder(String... orderIds) throws IOException { throw new NotYetImplementedForExchangeException( "This operation is not yet implemented for this exchange"); }
@Override public String placeStopOrder(StopOrder arg0) throws IOException { throw new NotYetImplementedForExchangeException( "This operation is not yet implemented for this exchange"); } }
@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws NotAvailableFromExchangeException, NotYetImplementedForExchangeException { throw new NotYetImplementedForExchangeException(); } }
public static Order.OrderStatus adaptOrderStatus(int status) { if (status == 0) return Order.OrderStatus.PENDING_NEW; if (status == 1) return Order.OrderStatus.PARTIALLY_FILLED; if (status == 2) return Order.OrderStatus.FILLED; if (status == 3) return Order.OrderStatus.CANCELED; if (status == 4) return Order.OrderStatus.PENDING_CANCEL; throw new NotYetImplementedForExchangeException(); } }
@Override public String withdrawFunds(WithdrawFundsParams params) throws IOException { throw new NotYetImplementedForExchangeException( "This operation is not yet implemented for this exchange"); }
/** * 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(); }
@Override public OpenOrdersParams createOpenOrdersParams() { throw new NotYetImplementedForExchangeException( "This operation is not yet implemented for this exchange"); }
/** * 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(); }
/** * Verify the order against the exchange meta data. Most implementations will require that {@link * org.knowm.xchange.Exchange#remoteInit()} be called before this method */ default void verifyOrder(LimitOrder limitOrder) { throw new NotYetImplementedForExchangeException(); }
/** * Verify the order against the exchange meta data. Most implementations will require that {@link * org.knowm.xchange.Exchange#remoteInit()} be called before this method */ default void verifyOrder(MarketOrder marketOrder) { throw new NotYetImplementedForExchangeException(); }
@Override public TradeHistoryParams createTradeHistoryParams() { 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 NotYetImplementedForExchangeException( "This operation is not yet implemented for this exchange"); }
@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams tradeHistoryParams) throws IOException { throw new NotYetImplementedForExchangeException(); } }
@Override public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws IOException { throw new NotYetImplementedForExchangeException(); } }
private static OrderStatus adaptOrderstatus(GeminiOrderStatusResponse geminiOrderStatusResponse) { if (geminiOrderStatusResponse.isCancelled()) return OrderStatus.CANCELED; if (geminiOrderStatusResponse.getRemainingAmount().equals(new BigDecimal(0.0))) return OrderStatus.FILLED; if (geminiOrderStatusResponse.getRemainingAmount().compareTo(new BigDecimal(0.0)) > 0) return OrderStatus.PARTIALLY_FILLED; throw new NotYetImplementedForExchangeException(); }
public boolean cancelOrder(CancelOrderParams params) throws ExchangeException { if (params instanceof DefaultCancelOrderParamId) { DefaultCancelOrderParamId paramsWithId = (DefaultCancelOrderParamId) params; return cancelOrder(paramsWithId.getOrderId()); } if (params instanceof CancelAllOrders) { List<BitmexPrivateOrder> orders = cancelAllOrders(); return !orders.isEmpty(); } throw new NotYetImplementedForExchangeException( String.format("Unexpected type of parameter: %s", params)); }
public static Order.OrderStatus adaptOrderStatus(BitstampOrderStatus bitstampOrderStatus) { if (bitstampOrderStatus.equals(BitstampOrderStatus.Queue)) return Order.OrderStatus.PENDING_NEW; if (bitstampOrderStatus.equals(BitstampOrderStatus.Finished)) return Order.OrderStatus.FILLED; if (bitstampOrderStatus.equals(BitstampOrderStatus.Open)) return Order.OrderStatus.NEW; throw new NotYetImplementedForExchangeException(); }