public class OKCoinAccountServiceRaw extends OKCoinBaseTradeService
apiKey, loginMaxRetryTimes, okCoin, okCoinClient, sign
Modifier | Constructor and Description |
---|---|
protected |
OKCoinAccountServiceRaw(org.knowm.xchange.Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
Withdrawal |
cancelWithdraw(String symbol,
long withdrawId) |
AccountRecords |
getAccountRecords(String symbol,
int type,
int currentPage,
int pageLength)
Returns the user deposits or withdraw records.
|
UserInfo |
getUserInfo() |
Withdrawal |
withdraw(String symbol,
BigDecimal chargeFee,
String tradePassword,
String withdrawAddress,
BigDecimal withdrawAmount) |
sleep, updateLast
protected OKCoinAccountServiceRaw(org.knowm.xchange.Exchange exchange)
public UserInfo getUserInfo() throws OKCoinException, IOException
OKCoinException
IOException
public Withdrawal withdraw(String symbol, BigDecimal chargeFee, String tradePassword, String withdrawAddress, BigDecimal withdrawAmount) throws OKCoinException, IOException
OKCoinException
IOException
public Withdrawal cancelWithdraw(String symbol, long withdrawId) throws OKCoinException, IOException
OKCoinException
IOException
public AccountRecords getAccountRecords(String symbol, int type, int currentPage, int pageLength) throws OKCoinException, IOException
symbol
- the symbol: btc_cny, ltc_cny, cny.type
- 0: deposits, 1: withdraw.currentPage
- the current page number, 1 based.pageLength
- the data entries number per page, maximum 50.OKCoinException
- indicates request failed.IOException
- indicates I/O exception.Copyright © 2013–2017. All rights reserved.