Package org.knowm.xchange.okcoin.service
Class OkCoinFuturesAccountService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.okcoin.service.OkCoinBaseService
org.knowm.xchange.okcoin.service.OKCoinBaseTradeService
org.knowm.xchange.okcoin.service.OkCoinAccountServiceRaw
org.knowm.xchange.okcoin.service.OkCoinFuturesAccountService
- All Implemented Interfaces:
AccountService
,BaseService
-
Nested Class Summary
Nested classes/interfaces inherited from class org.knowm.xchange.okcoin.service.OkCoinAccountServiceRaw
OkCoinAccountServiceRaw.AccountType
-
Field Summary
Fields inherited from class org.knowm.xchange.okcoin.service.OKCoinBaseTradeService
apikey, okCoin, secretKey
Fields inherited from class org.knowm.xchange.okcoin.service.OkCoinBaseService
useIntl
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreateTradeHistoryParams
object specific to this exchange.Get account inforequestDepositAddress
(Currency currency, String... args) Request a digital currency address to fund this account.withdrawFunds
(Currency currency, BigDecimal amount, String address) Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)Methods inherited from class org.knowm.xchange.okcoin.service.OkCoinAccountServiceRaw
getAccountRecords, getFuturesUserInfoFixed, getFutureUserInfo, getUserInfo, moveFunds, withdraw, withdraw
Methods inherited from class org.knowm.xchange.okcoin.service.OKCoinBaseTradeService
returnOrThrow, signatureCreator
Methods inherited from class org.knowm.xchange.okcoin.service.OkCoinBaseService
createDelimitedString
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
getDynamicTradingFeesByInstrument, getFundingHistory, requestDepositAddress, requestDepositAddressData, requestDepositAddressData, withdrawFunds, withdrawFunds
-
Constructor Details
-
OkCoinFuturesAccountService
Constructor- Parameters:
exchange
-
-
-
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
public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException Description copied from interface:AccountService
Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)- Specified by:
withdrawFunds
in 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
-
requestDepositAddress
Description copied from interface:AccountService
Request a digital currency address to fund this account. Allows to fund the exchange account with digital currency from an external address- Specified by:
requestDepositAddress
in interfaceAccountService
- Parameters:
currency
- The digital currency that corresponds to the desired deposit address.args
- Necessary argument(s) as aString
- Returns:
- the internal deposit address to send funds to
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-
createFundingHistoryParams
Description copied from interface:AccountService
CreateTradeHistoryParams
object specific to this exchange. Object created by this method may be used to discover supported and requiredAccountService.getFundingHistory(TradeHistoryParams)
parameters and should be passed only to the method in the same class as the createFundingHistoryParams that created the object.- Specified by:
createFundingHistoryParams
in interfaceAccountService
-