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
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionOkexAccountServiceRaw
(OkexExchange exchange, ResilienceRegistries resilienceRegistries) -
Method Summary
Modifier and TypeMethodDescriptionassetWithdrawal
(String currency, String amount, String method, String address, String fee, String chain, String clientId) changeMargin
(String instrumentId, String positionSide, String type, String amount, String currency, boolean auto, boolean loadTrans) getAssetBalances
(List<Currency> currencies) getBills
(String instrumentType, String currency, String marginMode, String contractType, String billType, String billSubType, String afterBillId, String beforeBillId, String beginTimestamp, String endTimestamp, String maxNumberOfResults) getDepositAddress
(String currency) getPiggyBalance
(String ccy) getSubAccountBalance
(String subAcct) getSubAccounts
(Boolean enable, String subAcct) getTradeFee
(String instrumentType, String instrumentId, String underlying, String category) getWalletBalances
(List<Currency> currencies) setLeverage
(String instrumentId, String currency, String leverage, String marginMode, String positionSide) 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:
-
ON_CHAIN_METHOD
- See Also:
-
-
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
-