Class BitfinexTradeService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<E>
org.knowm.xchange.service.BaseResilientExchangeService<BitfinexExchange>
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, signatureV2Fields inherited from class org.knowm.xchange.service.BaseResilientExchangeService
resilienceRegistriesFields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange -
Constructor Summary
Constructors Constructor Description BitfinexTradeService(BitfinexExchange exchange, ResilienceRegistries resilienceRegistries) -
Method Summary
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, withdrawMethods inherited from class org.knowm.xchange.service.BaseResilientExchangeService
decorateApiCall, rateLimiter, rateLimiter, retry, retryMethods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.knowm.xchange.service.trade.TradeService
getOpenPositions, getOrder, verifyOrder, verifyOrder
-
Constructor Details
-
BitfinexTradeService
-
-
Method Details
-
getOpenOrders
- Specified by:
getOpenOrdersin interfaceTradeService- Throws:
IOException
-
getOpenOrders
- Specified by:
getOpenOrdersin interfaceTradeService- Throws:
IOException
-
placeMarketOrder
- Specified by:
placeMarketOrderin interfaceTradeService- Throws:
IOException
-
placeLimitOrder
- Specified by:
placeLimitOrderin interfaceTradeService- Throws:
IOException
-
changeOrder
- Specified by:
changeOrderin interfaceTradeService- Throws:
IOException
-
placeStopOrder
- Specified by:
placeStopOrderin interfaceTradeService- Throws:
IOException
-
cancelOrder
- Specified by:
cancelOrderin interfaceTradeService- Throws:
IOException
-
cancelOrder
- Specified by:
cancelOrderin interfaceTradeService- Throws:
IOException
-
getTradeHistory
- Specified by:
getTradeHistoryin interfaceTradeService- Parameters:
params- Implementation ofTradeHistoryParamCurrencyPairis mandatory. Can optionally implementTradeHistoryParamPagingandTradeHistoryParamsTimeSpan.getStartTime(). All other TradeHistoryParams types will be ignored.- Throws:
IOException
-
createTradeHistoryParams
- Specified by:
createTradeHistoryParamsin interfaceTradeService
-
createOpenOrdersParams
- Specified by:
createOpenOrdersParamsin interfaceTradeService
-
getOrder
- Specified by:
getOrderin interfaceTradeService- Throws:
IOException
-
getMakerFee
- Throws:
IOException
-
getTakerFee
- Throws:
IOException
-