Class OkexTradeServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<OkexExchangeV3>
org.knowm.xchange.okcoin.v3.service.OkexBaseService
org.knowm.xchange.okcoin.v3.service.OkexTradeServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
OkexTradeService
public class OkexTradeServiceRaw extends OkexBaseService
-
Field Summary
Fields inherited from class org.knowm.xchange.okcoin.v3.service.OkexBaseService
apikey, digest, okex, passphrase, tradepwd
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Modifier Constructor Description protected
OkexTradeServiceRaw(OkexExchangeV3 exchange)
-
Method Summary
Methods inherited from class org.knowm.xchange.okcoin.v3.service.OkexBaseService
timestamp
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
OkexTradeServiceRaw
-
-
Method Details
-
spotPlaceOrder
Spot Token Trading API *********************************- Throws:
IOException
-
spotPlaceMultipleOrders
public Map<String,List<OrderPlacementResponse>> spotPlaceMultipleOrders(List<SpotOrderPlacementRequest> req) throws IOException- Throws:
IOException
-
spotCancelOrder
public OrderCancellationResponse spotCancelOrder(String orderId, OrderCancellationRequest req) throws IOException- Throws:
IOException
-
spotCancelMultipleOrders
public Map<String,List<OrderCancellationResponse>> spotCancelMultipleOrders(List<OrderBatchCancellationRequest> req) throws IOException- Throws:
IOException
-
getSpotOrderList
public List<OkexOpenOrder> getSpotOrderList(String instrumentId, String from, String to, Integer limit, String state) throws IOException- Throws:
IOException
-
getSpotOrderDetails
- Throws:
IOException
-
getSpotTransactionDetails
public List<OkexTransaction> getSpotTransactionDetails(String orderId, String instrumentId, String from, String to, Integer limit) throws IOException- Throws:
IOException
-
getFuturesOrderList
public List<OkexFuturesOpenOrder> getFuturesOrderList(String instrumentId, String from, String to, Integer limit, String state) throws IOExceptionFutures Trading API *********************************- Throws:
IOException
-
getFuturesLeverage
- Throws:
IOException
-
futuresPlaceOrder
public OrderPlacementResponse futuresPlaceOrder(FuturesOrderPlacementRequest req) throws IOException- Throws:
IOException
-
futuresPlaceMultipleOrders
public SwapFuturesMultipleOrderPlacementResponse futuresPlaceMultipleOrders(FuturesMultipleOrderPlacementRequest req) throws IOException- Throws:
IOException
-
futuresCancelOrder
public OrderCancellationResponse futuresCancelOrder(String instrumentId, String orderId) throws IOException- Throws:
IOException
-
futuresCancelMultipleOrders
public FuturesMultipleOrderCancellationResponse futuresCancelMultipleOrders(String instrumentId, OrderBatchCancellationRequest req) throws IOException- Throws:
IOException
-
getFuturesTransactionDetails
public List<OkexFuturesTransaction> getFuturesTransactionDetails(String orderId, String instrumentId, String from, String to, Integer limit) throws IOException- Throws:
IOException
-
getSwapOrderList
public List<OkexSwapOpenOrder> getSwapOrderList(String instrumentId, String from, String to, Integer limit, String state) throws IOExceptionSWAP Trading API *********************************- Throws:
IOException
-
swapPlaceOrder
- Throws:
IOException
-
swapPlaceMultipleOrders
public SwapFuturesMultipleOrderPlacementResponse swapPlaceMultipleOrders(SwapMultipleOrderPlacementRequest req) throws IOException- Throws:
IOException
-
swapCancelOrder
public OrderCancellationResponse swapCancelOrder(String instrumentId, String orderId) throws IOException- Throws:
IOException
-
swapCancelMultipleOrders
public SwapMultipleOrderCancellationResponse swapCancelMultipleOrders(String instrumentId, SwapOrderBatchCancellationRequest req) throws IOException- Throws:
IOException
-
getSwapTransactionDetails
public List<OkexSwapTransaction> getSwapTransactionDetails(String orderId, String instrumentId, String from, String to, Integer limit) throws IOException- Throws:
IOException
-
marginPlaceOrder
MARGIN Trading API *********************************- Throws:
IOException
-
getMarginOrderList
public List<OkexOpenOrder> getMarginOrderList(String instrumentId, String from, String to, Integer limit, String state) throws IOException- Throws:
IOException
-
getMarginTransactionDetails
public List<OkexTransaction> getMarginTransactionDetails(String orderId, String instrumentId, String from, String to, Integer limit) throws IOException- Throws:
IOException
-
getOrderDetails
- Throws:
IOException
-