Class TradeReq


public class TradeReq
extends Object
  • Constructor Details

    • TradeReq

      public TradeReq()
  • Method Details

    • orderHash

      public TradeReq orderHash​(String orderHash)
      - This is the unsalted hash of the order you are filling. See raw in the example code given with in the section that describes the order API call. The orderHash property of an order can be retrieved from the API calls which return orders, but for higher security we recommend you derive the hash yourself from the order parameters.
    • getOrderHash

      public String getOrderHash()
    • setOrderHash

      public void setOrderHash​(String orderHash)
    • amount

      public TradeReq amount​(String amount)
      - This is the amount of the order you are filling, the raw value not adjusted for precision IMPORTANT: THIS PROPERTY IS IN TERMS OF THE ORDER'S amountBuy PROPERTY. This is NOT the amount of tokenSell you are receiving, but the amount of tokenBuy you are filling the order with. Do not trade unless you fully understand this idea. The amount of the token you will receive as a result of the trade is proportional to the ratio between amountSell and amountBuy
    • getAmount

      public String getAmount()
    • setAmount

      public void setAmount​(String amount)
    • nonce

      public TradeReq nonce​(String nonce)
      - One time numeric value associated with the trade. Note: if filling multiple orders in one trade, every nonce in the list of trades must be greater than the one in the previous item
    • getNonce

      public String getNonce()
    • setNonce

      public void setNonce​(String nonce)
    • address

      public TradeReq address​(String address)
      - The address you are transacting from
    • getAddress

      public String getAddress()
    • setAddress

      public void setAddress​(String address)
    • v

      public TradeReq v​(BigInteger v)
      - ...
    • getV

      public BigInteger getV()
    • setV

      public void setV​(BigInteger v)
    • r

      public TradeReq r​(String r)
      - 0x
    • getR

      public String getR()
    • setR

      public void setR​(String r)
    • s

      public TradeReq s​(String s)
      - v, r, and s refer to the values produced by signing the message
    • getS

      public String getS()
    • setS

      public void setS​(String s)
    • equals

      public boolean equals​(Object o)
      equals in class Object
    • hashCode

      public int hashCode()
      hashCode in class Object
    • toString

      public String toString()
      toString in class Object