Package org.knowm.xchange.okex.service
Class OkexAccountService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<E>
org.knowm.xchange.service.BaseResilientExchangeService<OkexExchange>
org.knowm.xchange.okex.service.OkexBaseService
org.knowm.xchange.okex.service.OkexAccountServiceRaw
org.knowm.xchange.okex.service.OkexAccountService
- All Implemented Interfaces:
AccountService
,BaseService
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
-
Field Summary
Fields inherited from class org.knowm.xchange.okex.service.OkexAccountServiceRaw
INTERNAL_METHOD, ON_CHAIN_METHOD
Fields inherited from class org.knowm.xchange.okex.service.OkexBaseService
apiKey, okex, okexAuthenticated, passphrase, signatureCreator
Fields inherited from class org.knowm.xchange.service.BaseResilientExchangeService
resilienceRegistries
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
ConstructorDescriptionOkexAccountService
(OkexExchange exchange, ResilienceRegistries resilienceRegistries) -
Method Summary
Modifier and TypeMethodDescriptionGet account infowithdrawFunds
(WithdrawFundsParams params) Withdraw funds from this account.Methods inherited from class org.knowm.xchange.okex.service.OkexAccountServiceRaw
assetWithdrawal, changeMargin, getAccountPositionRisk, getAssetBalances, getBills, getDepositAddress, getOkexAccountConfiguration, getPiggyBalance, getSubAccountBalance, getSubAccounts, getTradeFee, getWalletBalances, setLeverage
Methods inherited from class org.knowm.xchange.okex.service.OkexBaseService
handleError
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
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
createFundingHistoryParams, getDynamicTradingFeesByInstrument, getFundingHistory, requestDepositAddress, requestDepositAddressData, withdrawFunds, withdrawFunds
-
Constructor Details
-
OkexAccountService
-
-
Method Details
-
getAccountInfo
Description copied from interface:AccountService
Get account info- Specified by:
getAccountInfo
in 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:AccountService
Withdraw funds from this account. Allows to withdraw digital currency funds from the exchange account to an external address- Specified by:
withdrawFunds
in 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
-