Package org.knowm.xchange.okex.service
Class OkexAccountServiceRaw
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
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
OkexAccountService
public class OkexAccountServiceRaw extends OkexBaseService
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
-
Field Summary
Fields Modifier and Type Field Description static String
INTERNAL_METHOD
static String
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
Constructors Constructor Description OkexAccountServiceRaw(OkexExchange exchange, ResilienceRegistries resilienceRegistries)
-
Method Summary
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
-
Field Details
-
INTERNAL_METHOD
- See Also:
- Constant Field Values
-
ON_CHAIN_METHOD
- See Also:
- Constant Field Values
-
-
Constructor Details
-
OkexAccountServiceRaw
-
-
Method Details
-
getAssetBalances
public OkexResponse<List<OkexAssetBalance>> getAssetBalances(List<Currency> currencies) throws OkexException, IOException- Throws:
OkexException
IOException
-
getWalletBalances
public OkexResponse<List<OkexWalletBalance>> getWalletBalances(List<Currency> currencies) throws OkexException, IOException- Throws:
OkexException
IOException
-
getAccountPositionRisk
public OkexResponse<List<OkexAccountPositionRisk>> getAccountPositionRisk() throws OkexException, IOException- Throws:
OkexException
IOException
-
assetWithdrawal
public OkexResponse<List<OkexWithdrawalResponse>> assetWithdrawal(String currency, String amount, String method, String address, String fee, String chain, String clientId) throws OkexException, IOException- Throws:
OkexException
IOException
-
setLeverage
public OkexResponse<List<OkexSetLeverageResponse>> setLeverage(String instrumentId, String currency, String leverage, String marginMode, String positionSide) throws OkexException, IOException- Throws:
OkexException
IOException
-
getDepositAddress
public OkexResponse<List<OkexDepositAddress>> getDepositAddress(String currency) throws OkexException, IOException- Throws:
OkexException
IOException
-
getTradeFee
public OkexResponse<List<OkexTradeFee>> getTradeFee(String instrumentType, String instrumentId, String underlying, String category) throws IOException, OkexException- Throws:
IOException
OkexException
-
getOkexAccountConfiguration
public OkexResponse<List<OkexAccountConfig>> getOkexAccountConfiguration() throws OkexException, IOException- Throws:
OkexException
IOException
-
getBills
public OkexResponse<List<OkexBillDetails>> getBills(String instrumentType, String currency, String marginMode, String contractType, String billType, String billSubType, String afterBillId, String beforeBillId, String beginTimestamp, String endTimestamp, String maxNumberOfResults) throws OkexException, IOException- Throws:
OkexException
IOException
-
changeMargin
public OkexResponse<List<OkexChangeMarginResponse>> changeMargin(String instrumentId, String positionSide, String type, String amount, String currency, boolean auto, boolean loadTrans) throws OkexException, IOException- Throws:
OkexException
IOException
-
getSubAccounts
public OkexResponse<List<OkexSubAccountDetails>> getSubAccounts(Boolean enable, String subAcct) throws IOException- Throws:
IOException
-
getSubAccountBalance
public OkexResponse<List<OkexWalletBalance>> getSubAccountBalance(String subAcct) throws IOException- Throws:
IOException
-
getPiggyBalance
- Throws:
IOException
-