Class BitfinexTradeServiceRaw
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.bitfinex.service.BitfinexBaseService
-
- org.knowm.xchange.bitfinex.service.BitfinexTradeServiceRaw
-
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
BitfinexTradeService
public class BitfinexTradeServiceRaw extends BitfinexBaseService
-
-
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 BitfinexTradeServiceRaw(Exchange exchange)Constructor
-
Method Summary
-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
getClientConfig, verifyOrder, verifyOrder, verifyOrder
-
-
-
-
Constructor Detail
-
BitfinexTradeServiceRaw
public BitfinexTradeServiceRaw(Exchange exchange)
Constructor- Parameters:
exchange-
-
-
Method Detail
-
getBitfinexAccountInfos
public BitfinexAccountInfosResponse[] getBitfinexAccountInfos() throws IOException
- Throws:
IOException
-
getBitfinexOpenOrders
public BitfinexOrderStatusResponse[] getBitfinexOpenOrders() throws IOException
- Throws:
IOException
-
getBitfinexOrdersHistory
public BitfinexOrderStatusResponse[] getBitfinexOrdersHistory(long limit) throws IOException
- Throws:
IOException
-
getBitfinexOpenOffers
public BitfinexOfferStatusResponse[] getBitfinexOpenOffers() throws IOException
- 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
public boolean cancelBitfinexOrder(String orderId) throws IOException
- Throws:
IOException
-
cancelAllBitfinexOrders
public boolean cancelAllBitfinexOrders() throws IOException- Throws:
IOException
-
cancelBitfinexOrderMulti
public boolean cancelBitfinexOrderMulti(List<String> orderIds) throws IOException
- Throws:
IOException
-
cancelBitfinexOffer
public BitfinexOfferStatusResponse cancelBitfinexOffer(String offerId) throws IOException
- Throws:
IOException
-
getBitfinexOrderStatus
public BitfinexOrderStatusResponse getBitfinexOrderStatus(String orderId) throws IOException
- 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
public BitfinexCreditResponse[] getBitfinexActiveCredits() throws IOException
- 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
public BitfinexActivePositionsResponse[] getBitfinexActivePositions() throws IOException
- Throws:
IOException
-
getBitfinexActivePositionsV2
public List<Position> getBitfinexActivePositionsV2() throws IOException
- Throws:
IOException
-
getBitfinexTradesV2
public List<Trade> getBitfinexTradesV2(String symbol, Long startTimeMillis, Long endTimeMillis, Long limit, Long sort) throws IOException
- Throws:
IOException
-
getBitfinexActiveOrdesV2
public List<ActiveOrder> getBitfinexActiveOrdesV2(String symbol) throws IOException
- Throws:
IOException
-
getBitfinexOrderTradesV2
public List<OrderTrade> getBitfinexOrderTradesV2(String symbol, Long orderId) throws IOException
- Throws:
IOException
-
-