Class OkexAccountService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<OkexExchangeV3>
org.knowm.xchange.okcoin.v3.service.OkexBaseService
org.knowm.xchange.okcoin.v3.service.OkexAccountServiceRaw
org.knowm.xchange.okcoin.v3.service.OkexAccountService
- All Implemented Interfaces:
AccountService,BaseService
-
Field Summary
Fields inherited from class org.knowm.xchange.okcoin.v3.service.OkexBaseService
apikey, digest, okex, passphrase, tradepwdFields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet account infogetFundingHistory(TradeHistoryParams params) getStaticFee(String currency) withdrawFunds(Currency currency, BigDecimal amount, String address) Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)withdrawFunds(WithdrawFundsParams params) Withdraw funds from this account.Methods inherited from class org.knowm.xchange.okcoin.v3.service.OkexAccountServiceRaw
currencyInformation, fundingAccountInformation, fundsTransfer, getFuturesAccounts, getFuturesAccounts, getFuturesBills, getFuturesPositions, getSwapAccounts, getSwapPositions, marginAccounts, marginAccountsSettings, marginBorrow, marginRepayment, recentDepositHistory, recentWithdrawalHistory, spotTradingAccount, withdrawalMethods inherited from class org.knowm.xchange.okcoin.v3.service.OkexBaseService
timestampMethods 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.account.AccountService
createFundingHistoryParams, getDynamicTradingFeesByInstrument, requestDepositAddress, requestDepositAddress, requestDepositAddressData, requestDepositAddressData, withdrawFunds
-
Constructor Details
-
OkexAccountService
-
-
Method Details
-
getAccountInfo
Description copied from interface:AccountServiceGet account info- Specified by:
getAccountInfoin interfaceAccountService- Returns:
- the AccountInfo object, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException- - Indication that a networking error occurred while fetching JSON data
-
withdrawFunds
Description copied from interface:AccountServiceWithdraw funds from this account. Allows to withdraw digital currency funds from the exchange account to an external address- Specified by:
withdrawFundsin interfaceAccountService- Parameters:
params- The withdrawl details- Returns:
- The result of the withdrawal (usually a transaction ID)
- Throws:
IOException- - Indication that a networking error occurred while fetching JSON data
-
withdrawFunds
public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException Description copied from interface:AccountServiceConvenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)- Specified by:
withdrawFundsin interfaceAccountService- Parameters:
currency- The currency to withdrawamount- The amount to withdrawaddress- The destination address- Returns:
- The result of the withdrawal (usually a transaction ID)
- Throws:
IOException- - Indication that a networking error occurred while fetching JSON data
-
getStaticFee
-
getFundingHistory
- Specified by:
getFundingHistoryin interfaceAccountService- Returns:
- list of funding history if available or an empty list otherwise. This should never return null.
- Throws:
IOException- - Indication that a networking error occurred while fetching JSON data
-