Class BitfinexAccountService
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.bitfinex.service.BitfinexBaseService
-
- org.knowm.xchange.bitfinex.service.BitfinexAccountServiceRaw
-
- org.knowm.xchange.bitfinex.service.BitfinexAccountService
-
- All Implemented Interfaces:
AccountService,BaseService
public class BitfinexAccountService extends BitfinexAccountServiceRaw implements AccountService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBitfinexAccountService.BitfinexFundingHistoryParams
-
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 BitfinexAccountService(Exchange exchange)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TradeHistoryParamscreateFundingHistoryParams()AccountInfogetAccountInfo()Map<CurrencyPair,Fee>getDynamicTradingFees()List<FundingRecord>getFundingHistory(TradeHistoryParams params)StringrequestDepositAddress(Currency currency, String... arguments)StringwithdrawFunds(Currency currency, BigDecimal amount, String address)Withdrawal supportStringwithdrawFunds(Currency currency, BigDecimal amount, String address, String tagOrPaymentId)Used for XRP withdrawalsStringwithdrawFunds(WithdrawFundsParams params)-
Methods inherited from class org.knowm.xchange.bitfinex.service.BitfinexAccountServiceRaw
getAccountFees, getBitfinexAccountInfo, getBitfinexBalanceHistory, getBitfinexDynamicTradingFees, getBitfinexMarginInfos, getDepositWithdrawalHistory, getLedgerEntries, getMovementHistory, requestDepositAddressRaw, withdraw, 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.account.AccountService
requestDepositAddressData, withdrawFunds
-
-
-
-
Constructor Detail
-
BitfinexAccountService
public BitfinexAccountService(Exchange exchange)
Constructor- Parameters:
exchange-
-
-
Method Detail
-
getAccountInfo
public AccountInfo getAccountInfo() throws IOException
- Specified by:
getAccountInfoin interfaceAccountService- Throws:
IOException
-
withdrawFunds
public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException
Withdrawal support- Specified by:
withdrawFundsin interfaceAccountService- Parameters:
currency-amount-address-- Returns:
- Throws:
IOException
-
withdrawFunds
public String withdrawFunds(Currency currency, BigDecimal amount, String address, String tagOrPaymentId) throws IOException
Used for XRP withdrawals- Parameters:
currency-amount-address-tagOrPaymentId-- Returns:
- Throws:
IOException
-
withdrawFunds
public String withdrawFunds(WithdrawFundsParams params) throws IOException
- Specified by:
withdrawFundsin interfaceAccountService- Throws:
IOException
-
requestDepositAddress
public String requestDepositAddress(Currency currency, String... arguments) throws IOException
- Specified by:
requestDepositAddressin interfaceAccountService- Throws:
IOException
-
createFundingHistoryParams
public TradeHistoryParams createFundingHistoryParams()
- Specified by:
createFundingHistoryParamsin interfaceAccountService
-
getFundingHistory
public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws IOException
- Specified by:
getFundingHistoryin interfaceAccountService- Throws:
IOException
-
getDynamicTradingFees
public Map<CurrencyPair,Fee> getDynamicTradingFees() throws IOException
- Specified by:
getDynamicTradingFeesin interfaceAccountService- Throws:
IOException
-
-