Package org.knowm.xchange.idex.dto
Class TradeReq
java.lang.Object
org.knowm.xchange.idex.dto.TradeReq
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription- The address you are transacting from- 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.boolean
getNonce()
getR()
getS()
getV()
int
hashCode()
- One time numeric value associated with the trade.- This is the unsalted hash of the order you are filling.- 0x- v, r, and s refer to the values produced by signing the messagevoid
setAddress
(String address) void
void
void
setOrderHash
(String orderHash) void
void
void
setV
(BigInteger v) toString()
v
(BigInteger v) - ...
-
Constructor Details
-
TradeReq
public TradeReq()
-
-
Method Details
-
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
-
setOrderHash
-
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
-
setAmount
-
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
-
setNonce
-
address
- The address you are transacting from -
getAddress
-
setAddress
-
v
- ... -
getV
-
setV
-
r
- 0x -
getR
-
setR
-
s
- v, r, and s refer to the values produced by signing the message -
getS
-
setS
-
equals
-
hashCode
public int hashCode() -
toString
-