Class LatokenNewOrder

java.lang.Object
org.knowm.xchange.latoken.dto.trade.LatokenNewOrder
Direct Known Subclasses:
LatokenOrder

public class LatokenNewOrder
extends Object
Response schema:
 {
        "orderId": "1555492358.126073.126767@0502:2",
        "cliOrdId": "myNewOrder",
        "pairId": 502,
        "symbol": "LAETH",
        "side": "buy",
        "orderType": "limit",
        "price": 136.2,
        "amount": 0.57,
 }
 
Author:
Ezer
  • Constructor Details

    • LatokenNewOrder

      public LatokenNewOrder​(String orderId, String clientOrderId, long pairId, String symbol, String side, String type, BigDecimal price, BigDecimal amount)
      C'tor
      Parameters:
      orderId -
      clientOrderId -
      pairId -
      symbol -
      side -
      type -
      price -
      amount -
  • Method Details

    • getOrderId

      public String getOrderId()
      Id of order
      Returns:
    • getClientOrderId

      public String getClientOrderId()
      Id of order provided by client (optional)
      Returns:
    • getPairId

      public long getPairId()
      ID of trading pair
      Returns:
    • getSymbol

      public String getSymbol()
      Trading pair symbol
      Returns:
    • getSide

      public LatokenOrderSide getSide()
      Order side
      Returns:
    • getType

      public OrderSubclass getType()
      Order type
      Returns:
    • getPrice

      public BigDecimal getPrice()
      Order price
      Returns:
    • getAmount

      public BigDecimal getAmount()
      Order amount
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object