Class BitfinexTradeService
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.bitfinex.service.BitfinexBaseService
-
- org.knowm.xchange.bitfinex.service.BitfinexTradeServiceRaw
-
- org.knowm.xchange.bitfinex.service.BitfinexTradeService
-
- All Implemented Interfaces:
BaseService,TradeService
public class BitfinexTradeService extends BitfinexTradeServiceRaw implements TradeService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBitfinexTradeService.BitfinexTradeHistoryParams
-
Field Summary
-
Fields inherited from class org.knowm.xchange.bitfinex.service.BitfinexBaseService
apiKey, bitfinex, bitfinexV2, payloadCreator, signatureCreator, signatureV2
-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Constructor Description BitfinexTradeService(Exchange exchange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancelOrder(String orderId)booleancancelOrder(CancelOrderParams orderParams)StringchangeOrder(LimitOrder order)OpenOrdersParamscreateOpenOrdersParams()TradeHistoryParamscreateTradeHistoryParams()BigDecimalgetMakerFee()OpenOrdersgetOpenOrders()OpenOrdersgetOpenOrders(OpenOrdersParams params)Collection<Order>getOrder(String... orderIds)BigDecimalgetTakerFee()UserTradesgetTradeHistory(TradeHistoryParams params)StringplaceLimitOrder(LimitOrder limitOrder)StringplaceMarketOrder(MarketOrder marketOrder)StringplaceStopOrder(StopOrder stopOrder)-
Methods inherited from class org.knowm.xchange.bitfinex.service.BitfinexTradeServiceRaw
cancelAllBitfinexOrders, cancelBitfinexOffer, cancelBitfinexOrder, cancelBitfinexOrderMulti, getBitfinexAccountInfos, getBitfinexActiveCredits, getBitfinexActiveOrdesV2, getBitfinexActivePositions, getBitfinexActivePositionsV2, getBitfinexFundingHistory, getBitfinexOfferStatusResponse, getBitfinexOpenOffers, getBitfinexOpenOrders, getBitfinexOrdersHistory, getBitfinexOrderStatus, getBitfinexOrderTradesV2, getBitfinexTradeHistory, getBitfinexTradesV2, placeBitfinexFixedRateLoanOrder, placeBitfinexFloatingRateLoanOrder, placeBitfinexLimitOrder, placeBitfinexMarketOrder, placeBitfinexOrderMulti, replaceBitfinexLimitOrder, withdraw, withdraw
-
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
getOrder, verifyOrder, verifyOrder
-
-
-
-
Constructor Detail
-
BitfinexTradeService
public BitfinexTradeService(Exchange exchange)
-
-
Method Detail
-
getOpenOrders
public OpenOrders getOpenOrders() throws IOException
- Specified by:
getOpenOrdersin interfaceTradeService- Throws:
IOException
-
getOpenOrders
public OpenOrders getOpenOrders(OpenOrdersParams params) throws IOException
- Specified by:
getOpenOrdersin interfaceTradeService- Throws:
IOException
-
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
-
changeOrder
public String changeOrder(LimitOrder order) throws IOException
- Specified by:
changeOrderin interfaceTradeService- Throws:
IOException
-
placeStopOrder
public String placeStopOrder(StopOrder stopOrder) throws IOException
- Specified by:
placeStopOrderin 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- Implementation ofTradeHistoryParamCurrencyPairis mandatory. Can optionally implementTradeHistoryParamPagingandTradeHistoryParamsTimeSpan.getStartTime(). All other TradeHistoryParams types will be ignored.- Throws:
IOException
-
createTradeHistoryParams
public TradeHistoryParams createTradeHistoryParams()
- 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
-
getMakerFee
public BigDecimal getMakerFee() throws IOException
- Throws:
IOException
-
getTakerFee
public BigDecimal getTakerFee() throws IOException
- Throws:
IOException
-
-