Class LatokenOrder

java.lang.Object
org.knowm.xchange.latoken.dto.trade.LatokenNewOrder
org.knowm.xchange.latoken.dto.trade.LatokenOrder

public final class LatokenOrder
extends LatokenNewOrder
Response schema:
 {
        "orderId": "1555492358.126073.126767@0502:2",
        "cliOrdId": "myNewOrder",
        "pairId": 502,
        "symbol": "LAETH",
        "side": "buy",
        "orderType": "limit",
        "price": 136.2,
        "amount": 0.57,
        "latokenOrderStatus": "partiallyFilled",
        "executedAmount": 0.27,
        "reaminingAmount": 0.3,
        "timeCreated": 155551580736,
        "timeFilled": 0
 }
 
Author:
Ezer
  • Constructor Details

    • LatokenOrder

      public LatokenOrder​(String orderId, String clientOrderId, long pairId, String symbol, String side, String type, BigDecimal price, BigDecimal amount, String orderStatus, BigDecimal executedAmount, BigDecimal reaminingAmount, long timeCreated, long timeFilled)
      C'tor
      Parameters:
      orderId -
      clientOrderId -
      pairId -
      symbol -
      side -
      type -
      price -
      amount -
  • Method Details

    • getOrderStatus

      public LatokenOrderStatus getOrderStatus()
      Order status
      Returns:
    • getExecutedAmount

      public BigDecimal getExecutedAmount()
      Amount of order filled
      Returns:
    • getReaminingAmount

      public BigDecimal getReaminingAmount()
      Amount of order available for execution
      Returns:
    • getTimeCreated

      public Date getTimeCreated()
      Time of order creation
      Returns:
    • getTimeFilled

      public Date getTimeFilled()
      Time when order is filled (or null)
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class LatokenNewOrder