Package org.knowm.xchange.okex
Interface OkexAuthenticated
- All Superinterfaces:
Okex
@Path("/api/v5") @Produces("application/json") public interface OkexAuthenticated extends Okex
-
Field Summary
Fields Modifier and Type Field Description static String
accountPositionAtRiskPath
static String
amendBatchOrderPath
static String
amendOrderPath
static String
assetBalancesPath
static String
assetWithdrawalPath
static String
balancePath
static String
cancelBatchOrderPath
static String
cancelOrderPath
static String
changeMarginPath
static String
configPath
static String
currenciesPath
static String
depositAddressPath
static String
getBillsPath
static String
orderDetailsPath
static String
ordersHistoryPath
static String
pendingOrdersPath
static String
piggyBalance
static String
placeBatchOrderPath
static String
placeOrderPath
static String
positionsPath
static Map<String,List<Integer>>
privatePathRateLimits
static String
setLeveragePath
static String
subAccountBalance
static String
subAccountList
static String
tradeFeePath
Fields inherited from interface org.knowm.xchange.okex.Okex
instrumentsPath, publicPathRateLimits
-
Method Summary
Modifier and Type Method Description OkexResponse<List<OkexOrderResponse>>
amendBatchOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, List<OkexAmendOrderRequest> requestPayload)
OkexResponse<List<OkexOrderResponse>>
amendOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, OkexAmendOrderRequest requestPayload)
OkexResponse<List<OkexWithdrawalResponse>>
assetWithdrawal(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, OkexWithdrawalRequest requestPayload)
OkexResponse<List<OkexOrderResponse>>
cancelBatchOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, List<OkexCancelOrderRequest> requestPayload)
OkexResponse<List<OkexOrderResponse>>
cancelOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, OkexCancelOrderRequest requestPayload)
OkexResponse<List<OkexChangeMarginResponse>>
changeMargin(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, OkexChangeMarginRequest requestPayload)
OkexResponse<List<OkexAccountConfig>>
getAccountConfiguration(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexAccountPositionRisk>>
getAccountPositionRisk(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexAssetBalance>>
getAssetBalances(List<Currency> currencies, String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
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, String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexCurrency>>
getCurrencies(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexDepositAddress>>
getDepositAddress(String currency, String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexOrderDetails>>
getOrderDetails(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, String instrumentId, String orderId, String clientOrderId)
OkexResponse<List<OkexOrderDetails>>
getOrderHistory(String instType, String instrumentId, String orderType, String state, String after, String before, String limit, String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexOrderDetails>>
getPendingOrders(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, String instrumentType, String underlying, String instrumentId, String orderType, String state, String after, String before, String limit)
OkexResponse<List<PiggyBalance>>
getPiggyBalance(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, String ccy)
OkexResponse<List<OkexPosition>>
getPositions(String instrumentType, String instrumentId, String positionId, String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexWalletBalance>>
getSubAccountBalance(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, String subAcct)
OkexResponse<List<OkexSubAccountDetails>>
getSubAccountList(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, String enable, String subAcct)
OkexResponse<List<OkexTradeFee>>
getTradeFee(String instrumentType, String instrumentId, String underlying, String category, String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexWalletBalance>>
getWalletBalances(List<Currency> currencies, String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading)
OkexResponse<List<OkexOrderResponse>>
placeBatchOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, List<OkexOrderRequest> requestPayload)
OkexResponse<List<OkexOrderResponse>>
placeOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, OkexOrderRequest requestPayload)
OkexResponse<List<OkexSetLeverageResponse>>
setLeverage(String apiKey, si.mazi.rescu.ParamsDigest signature, String timestamp, String passphrase, String simulatedTrading, OkexSetLeverageRequest requestPayload)
Methods inherited from interface org.knowm.xchange.okex.Okex
getFundingRate, getHistoryCandles, getInstruments, getOrderbook, getTicker, getTrades
-
Field Details
-
balancePath
- See Also:
- Constant Field Values
-
tradeFeePath
- See Also:
- Constant Field Values
-
configPath
- See Also:
- Constant Field Values
-
getBillsPath
- See Also:
- Constant Field Values
-
changeMarginPath
- See Also:
- Constant Field Values
-
currenciesPath
- See Also:
- Constant Field Values
-
assetBalancesPath
- See Also:
- Constant Field Values
-
assetWithdrawalPath
- See Also:
- Constant Field Values
-
positionsPath
- See Also:
- Constant Field Values
-
accountPositionAtRiskPath
- See Also:
- Constant Field Values
-
setLeveragePath
- See Also:
- Constant Field Values
-
pendingOrdersPath
- See Also:
- Constant Field Values
-
orderDetailsPath
- See Also:
- Constant Field Values
-
placeOrderPath
- See Also:
- Constant Field Values
-
placeBatchOrderPath
- See Also:
- Constant Field Values
-
cancelOrderPath
- See Also:
- Constant Field Values
-
cancelBatchOrderPath
- See Also:
- Constant Field Values
-
amendOrderPath
- See Also:
- Constant Field Values
-
amendBatchOrderPath
- See Also:
- Constant Field Values
-
depositAddressPath
- See Also:
- Constant Field Values
-
ordersHistoryPath
- See Also:
- Constant Field Values
-
subAccountList
- See Also:
- Constant Field Values
-
subAccountBalance
- See Also:
- Constant Field Values
-
piggyBalance
- See Also:
- Constant Field Values
-
privatePathRateLimits
-
-
Method Details
-
getTradeFee
@GET @Path("/account/trade-fee") OkexResponse<List<OkexTradeFee>> getTradeFee(@QueryParam("instType") String instrumentType, @QueryParam("instId") String instrumentId, @QueryParam("uly") String underlying, @QueryParam("category") String category, @HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) -
getAccountConfiguration
@GET @Path("/account/config") OkexResponse<List<OkexAccountConfig>> getAccountConfiguration(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws OkexException, IOException- Throws:
OkexException
IOException
-
getBills
@GET @Path("/account/bills") OkexResponse<List<OkexBillDetails>> getBills(@QueryParam("instType") String instrumentType, @QueryParam("ccy") String currency, @QueryParam("mgnMode") String marginMode, @QueryParam("ctType") String contractType, @QueryParam("type") String billType, @QueryParam("subType") String billSubType, @QueryParam("after") String afterBillId, @QueryParam("before") String beforeBillId, @QueryParam("begin") String beginTimestamp, @QueryParam("end") String endTimestamp, @QueryParam("limit") String maxNumberOfResults, @HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws OkexException, IOException- Throws:
OkexException
IOException
-
changeMargin
@POST @Path("/account/position/margin-balance") @Consumes("application/json") OkexResponse<List<OkexChangeMarginResponse>> changeMargin(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, OkexChangeMarginRequest requestPayload) throws OkexException, IOException- Throws:
OkexException
IOException
-
getOrderHistory
@GET @Path("/trade/orders-history") OkexResponse<List<OkexOrderDetails>> getOrderHistory(@QueryParam("instType") String instType, @QueryParam("instId") String instrumentId, @QueryParam("ordType") String orderType, @QueryParam("state") String state, @QueryParam("after") String after, @QueryParam("before") String before, @QueryParam("limit") String limit, @HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) -
getDepositAddress
@GET @Path("/asset/deposit-address") OkexResponse<List<OkexDepositAddress>> getDepositAddress(@QueryParam("ccy") String currency, @HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws IOException, OkexException- Throws:
IOException
OkexException
-
getWalletBalances
@GET @Path("/account/balance") OkexResponse<List<OkexWalletBalance>> getWalletBalances(@QueryParam("ccy") List<Currency> currencies, @HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws IOException, OkexException- Throws:
IOException
OkexException
-
getCurrencies
@GET @Path("/asset/currencies") OkexResponse<List<OkexCurrency>> getCurrencies(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws OkexException, IOException- Throws:
OkexException
IOException
-
getAssetBalances
@GET @Path("/asset/balances") OkexResponse<List<OkexAssetBalance>> getAssetBalances(@QueryParam("ccy") List<Currency> currencies, @HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws OkexException, IOException- Throws:
OkexException
IOException
-
assetWithdrawal
@POST @Path("/asset/withdrawal") @Consumes("application/json") OkexResponse<List<OkexWithdrawalResponse>> assetWithdrawal(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, OkexWithdrawalRequest requestPayload) throws OkexException, IOException- Throws:
OkexException
IOException
-
getPositions
@GET @Path("/account/positions") OkexResponse<List<OkexPosition>> getPositions(@QueryParam("instType") String instrumentType, @QueryParam("instId") String instrumentId, @QueryParam("posId") String positionId, @HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws IOException, OkexException- Throws:
IOException
OkexException
-
getAccountPositionRisk
@GET @Path("/account/account-position-risk") OkexResponse<List<OkexAccountPositionRisk>> getAccountPositionRisk(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws IOException, OkexException- Throws:
IOException
OkexException
-
setLeverage
@POST @Path("/account/set-leverage") @Consumes("application/json") OkexResponse<List<OkexSetLeverageResponse>> setLeverage(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, OkexSetLeverageRequest requestPayload) throws IOException, OkexException- Throws:
IOException
OkexException
-
getPendingOrders
@GET @Path("/trade/orders-pending") OkexResponse<List<OkexOrderDetails>> getPendingOrders(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, @QueryParam("instType") String instrumentType, @QueryParam("uly") String underlying, @QueryParam("instId") String instrumentId, @QueryParam("ordType") String orderType, @QueryParam("state") String state, @QueryParam("after") String after, @QueryParam("before") String before, @QueryParam("limit") String limit) throws OkexException, IOException- Throws:
OkexException
IOException
-
getOrderDetails
@GET @Path("/trade/order") OkexResponse<List<OkexOrderDetails>> getOrderDetails(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, @QueryParam("instId") String instrumentId, @QueryParam("ordId") String orderId, @QueryParam("clOrdId") String clientOrderId) throws OkexException, IOException- Throws:
OkexException
IOException
-
getSubAccountList
@GET @Path("/users/subaccount/list") OkexResponse<List<OkexSubAccountDetails>> getSubAccountList(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, @QueryParam("enable") String enable, @QueryParam("subAcct") String subAcct) throws OkexException, IOException- Throws:
OkexException
IOException
-
getSubAccountBalance
@GET @Path("/account/subaccount/balances") OkexResponse<List<OkexWalletBalance>> getSubAccountBalance(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, @QueryParam("subAcct") String subAcct) throws OkexException, IOException- Throws:
OkexException
IOException
-
getPiggyBalance
@GET @Path("/asset/piggy-balance") OkexResponse<List<PiggyBalance>> getPiggyBalance(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, @QueryParam("ccy") String ccy) throws OkexException, IOException- Throws:
OkexException
IOException
-
placeOrder
@POST @Path("/trade/order") @Consumes("application/json") OkexResponse<List<OkexOrderResponse>> placeOrder(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, OkexOrderRequest requestPayload) throws OkexException, IOException- Throws:
OkexException
IOException
-
placeBatchOrder
@POST @Path("/trade/batch-orders") @Consumes("application/json") OkexResponse<List<OkexOrderResponse>> placeBatchOrder(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, List<OkexOrderRequest> requestPayload) throws OkexException, IOException- Throws:
OkexException
IOException
-
cancelOrder
@POST @Path("/trade/cancel-order") @Consumes("application/json") OkexResponse<List<OkexOrderResponse>> cancelOrder(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, OkexCancelOrderRequest requestPayload) throws OkexException, IOException- Throws:
OkexException
IOException
-
cancelBatchOrder
@POST @Path("/trade/cancel-batch-orders") @Consumes("application/json") OkexResponse<List<OkexOrderResponse>> cancelBatchOrder(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, List<OkexCancelOrderRequest> requestPayload) throws OkexException, IOException- Throws:
OkexException
IOException
-
amendOrder
@POST @Path("/trade/amend-order") @Consumes("application/json") OkexResponse<List<OkexOrderResponse>> amendOrder(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, OkexAmendOrderRequest requestPayload) throws OkexException, IOException- Throws:
OkexException
IOException
-
amendBatchOrder
@POST @Path("trade/amend-batch-orders") @Consumes("application/json") OkexResponse<List<OkexOrderResponse>> amendBatchOrder(@HeaderParam("OK-ACCESS-KEY") String apiKey, @HeaderParam("OK-ACCESS-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("OK-ACCESS-TIMESTAMP") String timestamp, @HeaderParam("OK-ACCESS-PASSPHRASE") String passphrase, @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, List<OkexAmendOrderRequest> requestPayload) throws OkexException, IOException- Throws:
OkexException
IOException
-