public class Trade extends BaseObject
Constructor and Description |
---|
Trade(long id,
BigDecimal price,
BigDecimal volume,
BigDecimal funds,
String market,
Date createdAt,
String side,
Long orderId) |
Modifier and Type | Method and Description |
---|---|
Date |
getCreatedAt() |
BigDecimal |
getFunds() |
long |
getId() |
String |
getMarket() |
Long |
getOrderId() |
BigDecimal |
getPrice() |
String |
getSide() |
BigDecimal |
getVolume() |
toString
public Trade(long id, BigDecimal price, BigDecimal volume, BigDecimal funds, String market, Date createdAt, String side, Long orderId)
id
- unique ID.price
- trade price.volume
- trade volume.funds
- the funds.market
- the market trade belongs to, like 'btccny'.createdAt
- trade time.side
- the side.orderId
- my order ID related to this trade.
Only Peatio.getMyTrades(java.lang.String, si.mazi.rescu.SynchronizedValueFactory<java.lang.Long>, si.mazi.rescu.ParamsDigest, java.lang.String, java.lang.Integer, java.lang.Long, java.lang.Long, java.lang.Long, java.lang.String)
returns this field,
indicates which order this trade belongs to.public long getId()
public BigDecimal getPrice()
public BigDecimal getVolume()
public BigDecimal getFunds()
public String getMarket()
public Date getCreatedAt()
public String getSide()
public Long getOrderId()
Copyright © 2015. All rights reserved.