Class PoloniexTradeService
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.poloniex.service.PoloniexBaseService
-
- org.knowm.xchange.poloniex.service.PoloniexTradeServiceRaw
-
- org.knowm.xchange.poloniex.service.PoloniexTradeService
-
- All Implemented Interfaces:
BaseService,TradeService
public class PoloniexTradeService extends PoloniexTradeServiceRaw implements TradeService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPoloniexTradeService.PoloniexTradeHistoryParams
-
Field Summary
-
Fields inherited from class org.knowm.xchange.poloniex.service.PoloniexBaseService
apiKey, poloniex, poloniexAuthenticated, signatureCreator
-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Constructor Description PoloniexTradeService(Exchange exchange, PoloniexMarketDataService poloniexMarketDataService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancelOrder(String orderId)booleancancelOrder(CancelOrderParams orderParams)OpenOrdersParamscreateOpenOrdersParams()TradeHistoryParamscreateTradeHistoryParams()CreateTradeHistoryParamsthat supportsTradeHistoryParamsTimeSpanandTradeHistoryParamCurrencyPair.BigDecimalgetMakerFee()OpenOrdersgetOpenOrders()OpenOrdersgetOpenOrders(OpenOrdersParams params)Collection<Order>getOrder(String... orderIds)UserTradesgetOrderTrades(String orderId, CurrencyPair currencyPair)UserTradesgetOrderTrades(Order order)BigDecimalgetTakerFee()UserTradesgetTradeHistory(TradeHistoryParams params)StringplaceLimitOrder(LimitOrder limitOrder)StringplaceMarketOrder(MarketOrder marketOrder)-
Methods inherited from class org.knowm.xchange.poloniex.service.PoloniexTradeServiceRaw
buy, cancel, getFeeInfo, move, move, returnAllAvailableAccountBalances, returnAllMarginPositions, returnAvailableAccountBalances, returnMarginAccountSummary, returnMarginPosition, returnOpenOrders, returnOpenOrders, returnTradableBalances, returnTradeHistory, returnTradeHistory, sell
-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
getClientConfig, verifyOrder, verifyOrder, verifyOrder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.knowm.xchange.service.trade.TradeService
changeOrder, getOrder, placeStopOrder, verifyOrder, verifyOrder
-
-
-
-
Constructor Detail
-
PoloniexTradeService
public PoloniexTradeService(Exchange exchange, PoloniexMarketDataService poloniexMarketDataService)
-
-
Method Detail
-
getOpenOrders
public OpenOrders getOpenOrders() throws IOException
- Specified by:
getOpenOrdersin interfaceTradeService- Throws:
IOException
-
getOpenOrders
public OpenOrders getOpenOrders(OpenOrdersParams params) throws ExchangeException, IOException
- Specified by:
getOpenOrdersin interfaceTradeService- Throws:
ExchangeExceptionIOException
-
placeMarketOrder
public String placeMarketOrder(MarketOrder marketOrder) throws IOException
- Specified by:
placeMarketOrderin interfaceTradeService- Throws:
IOException
-
placeLimitOrder
public String placeLimitOrder(LimitOrder limitOrder) throws IOException
- Specified by:
placeLimitOrderin interfaceTradeService- Throws:
IOException
-
cancelOrder
public boolean cancelOrder(String orderId) throws IOException
- Specified by:
cancelOrderin interfaceTradeService- Throws:
IOException
-
cancelOrder
public boolean cancelOrder(CancelOrderParams orderParams) throws IOException
- Specified by:
cancelOrderin interfaceTradeService- Throws:
IOException
-
getTradeHistory
public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException
- Specified by:
getTradeHistoryin interfaceTradeService- Parameters:
params- Can optionally implementTradeHistoryParamCurrencyPairandTradeHistoryParamsTimeSpan. All other TradeHistoryParams types will be ignored.- Throws:
IOException
-
getMakerFee
public BigDecimal getMakerFee() throws IOException
- Throws:
IOException
-
getTakerFee
public BigDecimal getTakerFee() throws IOException
- Throws:
IOException
-
createTradeHistoryParams
public TradeHistoryParams createTradeHistoryParams()
CreateTradeHistoryParamsthat supportsTradeHistoryParamsTimeSpanandTradeHistoryParamCurrencyPair.- Specified by:
createTradeHistoryParamsin interfaceTradeService
-
createOpenOrdersParams
public OpenOrdersParams createOpenOrdersParams()
- Specified by:
createOpenOrdersParamsin interfaceTradeService
-
getOrder
public Collection<Order> getOrder(String... orderIds) throws IOException
- Specified by:
getOrderin interfaceTradeService- Throws:
IOException
-
getOrderTrades
public final UserTrades getOrderTrades(Order order) throws IOException
- Throws:
IOException
-
getOrderTrades
public UserTrades getOrderTrades(String orderId, CurrencyPair currencyPair) throws IOException
- Throws:
IOException
-
-