Class LatokenTradeServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<Exchange>
org.knowm.xchange.latoken.service.LatokenBaseService
org.knowm.xchange.latoken.service.LatokenTradeServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
LatokenTradeService
-
Field Summary
Fields inherited from class org.knowm.xchange.latoken.service.LatokenBaseService
apiKey, latoken, LOG, signatureCreatorFields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelLatokenOrder(String orderId) Cancels an order given itsorderId.Cancels all orders of a givenCurrencyPair.getLatokenOpenOrders(CurrencyPair pair, Integer limit) Returns all currently open orders.getLatokenOrder(String orderId) Returns an order given itsorderId.getLatokenOrders(CurrencyPair pair, LatokenOrderStatus status, Integer limit) getLatokenUserTrades(CurrencyPair pair, Integer limit) Returns all user-trades of a givenCurrencyPair.placeLatokenNewOrder(CurrencyPair pair, String clientOrderId, LatokenOrderSide side, BigDecimal price, BigDecimal amount) Places a newLimitOrder.placeLatokenTestOrder(CurrencyPair pair, String clientOrderId, LatokenOrderSide side, BigDecimal price, BigDecimal amount) Tests order placement.Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
LatokenTradeServiceRaw
-
-
Method Details
-
getLatokenOpenOrders
public List<LatokenOrder> getLatokenOpenOrders(CurrencyPair pair, Integer limit) throws LatokenException, IOException Returns all currently open orders.- Parameters:
pair-limit- - optional (whennull, default value of 50 is used)- Returns:
- Throws:
LatokenExceptionIOException
-
getLatokenOrder
Returns an order given itsorderId.- Parameters:
orderId-- Returns:
- Throws:
LatokenExceptionIOException
-
getLatokenOrders
public List<LatokenOrder> getLatokenOrders(CurrencyPair pair, LatokenOrderStatus status, Integer limit) throws LatokenException, IOException Returns list of orders of a givenpairandstatus.
This includes both open-orders and order-history.- Parameters:
pair-status-limit- - optional (whennull, default value of 100 is used)- Returns:
- Throws:
LatokenExceptionIOException
-
placeLatokenNewOrder
public LatokenNewOrder placeLatokenNewOrder(CurrencyPair pair, String clientOrderId, LatokenOrderSide side, BigDecimal price, BigDecimal amount) throws IOException, LatokenException Places a newLimitOrder.- Parameters:
pair-clientOrderId-side-price-amount-timeAliveMillis- - Indicates how long the request is valid in milliseconds (example: 3000)- Returns:
- Throws:
IOExceptionLatokenException
-
placeLatokenTestOrder
public LatokenTestOrder placeLatokenTestOrder(CurrencyPair pair, String clientOrderId, LatokenOrderSide side, BigDecimal price, BigDecimal amount) throws IOException, LatokenException Tests order placement.- Parameters:
pair-clientOrderId-side-price-amount-timeAliveMillis-- Returns:
- Throws:
IOExceptionLatokenException
-
cancelLatokenOrder
Cancels an order given itsorderId.- Parameters:
orderId-- Returns:
- Throws:
IOExceptionLatokenException
-
cancelLatokenOrders
public LatokenCancelledOrders cancelLatokenOrders(CurrencyPair pair) throws LatokenException, IOException Cancels all orders of a givenCurrencyPair.- Parameters:
pair-- Returns:
- Throws:
LatokenExceptionIOException
-
getLatokenUserTrades
public LatokenUserTrades getLatokenUserTrades(CurrencyPair pair, Integer limit) throws LatokenException, IOException Returns all user-trades of a givenCurrencyPair.- Parameters:
pair-limit- - optional (whennull, default value of 10 is used)- Returns:
- Throws:
LatokenExceptionIOException
-