Package org.knowm.xchange.okex.service
Class OkexTradeServiceRaw
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.OkexTradeServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
OkexTradeService
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
-
Field Summary
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
ConstructorDescriptionOkexTradeServiceRaw
(OkexExchange exchange, ResilienceRegistries resilienceRegistries) -
Method Summary
Modifier and TypeMethodDescriptionamendOkexOrder
(List<OkexAmendOrderRequest> orders) cancelOkexOrder
(List<OkexCancelOrderRequest> orders) getOkexOrder
(String instrumentId, String orderId) getOkexPendingOrder
(String instrumentType, String underlying, String instrumentId, String orderType, String state, String after, String before, String limit) getOrderHistory
(String instrumentType, String instrumentId, String orderType, String after, String before, String limit) getPositions
(String instrumentType, String instrumentId, String positionId) placeOkexOrder
(List<OkexOrderRequest> orders) placeOkexOrder
(OkexOrderRequest order) 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
-
Constructor Details
-
OkexTradeServiceRaw
-
-
Method Details
-
getOkexPendingOrder
public OkexResponse<List<OkexOrderDetails>> getOkexPendingOrder(String instrumentType, String underlying, String instrumentId, String orderType, String state, String after, String before, String limit) throws IOException - Throws:
IOException
-
getPositions
public OkexResponse<List<OkexPosition>> getPositions(String instrumentType, String instrumentId, String positionId) throws OkexException, IOException - Throws:
OkexException
IOException
-
getOkexOrder
public OkexResponse<List<OkexOrderDetails>> getOkexOrder(String instrumentId, String orderId) throws IOException - Throws:
IOException
-
getOrderHistory
public OkexResponse<List<OkexOrderDetails>> getOrderHistory(String instrumentType, String instrumentId, String orderType, String after, String before, String limit) throws IOException - Throws:
IOException
-
placeOkexOrder
public OkexResponse<List<OkexOrderResponse>> placeOkexOrder(OkexOrderRequest order) throws IOException - Throws:
IOException
-
placeOkexOrder
public OkexResponse<List<OkexOrderResponse>> placeOkexOrder(List<OkexOrderRequest> orders) throws IOException - Throws:
IOException
-
cancelOkexOrder
public OkexResponse<List<OkexOrderResponse>> cancelOkexOrder(OkexCancelOrderRequest order) throws IOException - Throws:
IOException
-
cancelOkexOrder
public OkexResponse<List<OkexOrderResponse>> cancelOkexOrder(List<OkexCancelOrderRequest> orders) throws IOException - Throws:
IOException
-
amendOkexOrder
public OkexResponse<List<OkexOrderResponse>> amendOkexOrder(OkexAmendOrderRequest order) throws IOException - Throws:
IOException
-
amendOkexOrder
public OkexResponse<List<OkexOrderResponse>> amendOkexOrder(List<OkexAmendOrderRequest> orders) throws IOException - Throws:
IOException
-