Class BitfinexTradeServiceRaw
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
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
BitfinexTradeService
-
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.BaseResilientExchangeService
resilienceRegistries
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
ConstructorDescriptionBitfinexTradeServiceRaw
(BitfinexExchange exchange, ResilienceRegistries resilienceRegistries) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancelBitfinexOffer
(String offerId) boolean
cancelBitfinexOrder
(String orderId) boolean
cancelBitfinexOrderMulti
(List<String> orderIds) getBitfinexActiveOrdesV2
(String symbol) getBitfinexFundingHistory
(String symbol, Date until, int limit_trades) getBitfinexOfferStatusResponse
(String offerId) getBitfinexOrdersHistory
(long limit) getBitfinexOrderStatus
(String orderId) getBitfinexOrderTradesV2
(String symbol, Long orderId) getBitfinexTradeHistory
(String symbol, long startTime, Long endTime, Integer limit, Integer reverse) placeBitfinexFixedRateLoanOrder
(FixedRateLoanOrder loanOrder, BitfinexOrderType orderType) placeBitfinexFloatingRateLoanOrder
(FloatingRateLoanOrder loanOrder, BitfinexOrderType orderType) placeBitfinexLimitOrder
(LimitOrder limitOrder, BitfinexOrderType orderType) placeBitfinexMarketOrder
(MarketOrder marketOrder, BitfinexOrderType bitfinexOrderType) placeBitfinexOrderMulti
(List<? extends Order> orders, BitfinexOrderType bitfinexOrderType) replaceBitfinexLimitOrder
(LimitOrder limitOrder, BitfinexOrderType orderType, long replaceOrderId) withdraw
(String withdrawType, String walletSelected, BigDecimal amount, String address) withdraw
(String withdrawType, String walletSelected, BigDecimal amount, String address, String paymentId) Methods inherited from class org.knowm.xchange.service.BaseResilientExchangeService
decorateApiCall, rateLimiter, rateLimiter, retry, retry
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
BitfinexTradeServiceRaw
public BitfinexTradeServiceRaw(BitfinexExchange exchange, ResilienceRegistries resilienceRegistries) Constructor- Parameters:
exchange
-
-
-
Method Details
-
getBitfinexAccountInfos
- Throws:
IOException
-
getBitfinexOpenOrders
- Throws:
IOException
-
getBitfinexOrdersHistory
- Throws:
IOException
-
getBitfinexOpenOffers
- Throws:
IOException
-
placeBitfinexMarketOrder
public BitfinexOrderStatusResponse placeBitfinexMarketOrder(MarketOrder marketOrder, BitfinexOrderType bitfinexOrderType) throws IOException - Throws:
IOException
-
placeBitfinexLimitOrder
public BitfinexOrderStatusResponse placeBitfinexLimitOrder(LimitOrder limitOrder, BitfinexOrderType orderType) throws IOException - Throws:
IOException
-
replaceBitfinexLimitOrder
public BitfinexOrderStatusResponse replaceBitfinexLimitOrder(LimitOrder limitOrder, BitfinexOrderType orderType, long replaceOrderId) throws IOException - Throws:
IOException
-
placeBitfinexOrderMulti
public BitfinexNewOrderMultiResponse placeBitfinexOrderMulti(List<? extends Order> orders, BitfinexOrderType bitfinexOrderType) throws IOException - Throws:
IOException
-
placeBitfinexFixedRateLoanOrder
public BitfinexOfferStatusResponse placeBitfinexFixedRateLoanOrder(FixedRateLoanOrder loanOrder, BitfinexOrderType orderType) throws IOException - Throws:
IOException
-
placeBitfinexFloatingRateLoanOrder
public BitfinexOfferStatusResponse placeBitfinexFloatingRateLoanOrder(FloatingRateLoanOrder loanOrder, BitfinexOrderType orderType) throws IOException - Throws:
IOException
-
cancelBitfinexOrder
- Throws:
IOException
-
cancelAllBitfinexOrders
- Throws:
IOException
-
cancelBitfinexOrderMulti
- Throws:
IOException
-
cancelBitfinexOffer
- Throws:
IOException
-
getBitfinexOrderStatus
- Throws:
IOException
-
getBitfinexOfferStatusResponse
public BitfinexOfferStatusResponse getBitfinexOfferStatusResponse(String offerId) throws IOException - Throws:
IOException
-
getBitfinexFundingHistory
public BitfinexFundingTradeResponse[] getBitfinexFundingHistory(String symbol, Date until, int limit_trades) throws IOException - Throws:
IOException
-
getBitfinexTradeHistory
public BitfinexTradeResponse[] getBitfinexTradeHistory(String symbol, long startTime, Long endTime, Integer limit, Integer reverse) throws IOException - Throws:
IOException
-
getBitfinexActiveCredits
- Throws:
IOException
-
withdraw
public String withdraw(String withdrawType, String walletSelected, BigDecimal amount, String address) throws IOException - Throws:
IOException
-
withdraw
public String withdraw(String withdrawType, String walletSelected, BigDecimal amount, String address, String paymentId) throws IOException - Throws:
IOException
-
getBitfinexActivePositions
- Throws:
IOException
-
getBitfinexActivePositionsV2
- Throws:
IOException
-
getBitfinexTradesV2
public List<Trade> getBitfinexTradesV2(String symbol, Long startTimeMillis, Long endTimeMillis, Long limit, Long sort) throws IOException - Throws:
IOException
-
getBitfinexActiveOrdesV2
- Throws:
IOException
-
getBitfinexOrderTradesV2
- Throws:
IOException
-