Class Trade
- java.lang.Object
-
- tech.cassandre.trading.bot.util.base.domain.BaseDomain
-
- tech.cassandre.trading.bot.domain.Trade
-
@Entity public class Trade extends BaseDomain
Trade.
-
-
Constructor Summary
Constructors Constructor Description Trade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
CurrencyAmount
getAmount()
Amount that was ordered.String
getCurrencyPair()
Currency pair.CurrencyAmount
getFee()
The fee that was charged by the exchange for this trade.Long
getId()
Technical ID.Order
getOrder()
The order responsible for this trade.CurrencyAmount
getPrice()
The price.ZonedDateTime
getTimestamp()
The timestamp of the trade.String
getTradeId()
An identifier set by the exchange that uniquely identifies the trade.OrderTypeDTO
getType()
Trade type i.e.String
getUserReference()
An identifier provided by the user on placement that uniquely identifies the order of this trade.int
hashCode()
void
setAmount(CurrencyAmount amount)
Amount that was ordered.void
setCurrencyPair(String currencyPair)
Currency pair.void
setFee(CurrencyAmount fee)
The fee that was charged by the exchange for this trade.void
setId(Long id)
Technical ID.void
setOrder(Order order)
The order responsible for this trade.void
setPrice(CurrencyAmount price)
The price.void
setTimestamp(ZonedDateTime timestamp)
The timestamp of the trade.void
setTradeId(String tradeId)
An identifier set by the exchange that uniquely identifies the trade.void
setType(OrderTypeDTO type)
Trade type i.e.void
setUserReference(String userReference)
An identifier provided by the user on placement that uniquely identifies the order of this trade.String
toString()
-
Methods inherited from class tech.cassandre.trading.bot.util.base.domain.BaseDomain
getCreatedOn, getUpdatedOn, setCreatedOn, setUpdatedOn
-
-
-
-
Method Detail
-
getId
public Long getId()
Technical ID.
-
getTradeId
public String getTradeId()
An identifier set by the exchange that uniquely identifies the trade.
-
getType
public OrderTypeDTO getType()
Trade type i.e. bid (buy) or ask (sell).
-
getOrder
public Order getOrder()
The order responsible for this trade.
-
getCurrencyPair
public String getCurrencyPair()
Currency pair.
-
getAmount
public CurrencyAmount getAmount()
Amount that was ordered.
-
getPrice
public CurrencyAmount getPrice()
The price.
-
getFee
public CurrencyAmount getFee()
The fee that was charged by the exchange for this trade.
-
getUserReference
public String getUserReference()
An identifier provided by the user on placement that uniquely identifies the order of this trade.
-
getTimestamp
public ZonedDateTime getTimestamp()
The timestamp of the trade.
-
setId
public void setId(Long id)
Technical ID.
-
setTradeId
public void setTradeId(String tradeId)
An identifier set by the exchange that uniquely identifies the trade.
-
setType
public void setType(OrderTypeDTO type)
Trade type i.e. bid (buy) or ask (sell).
-
setOrder
public void setOrder(Order order)
The order responsible for this trade.
-
setCurrencyPair
public void setCurrencyPair(String currencyPair)
Currency pair.
-
setAmount
public void setAmount(CurrencyAmount amount)
Amount that was ordered.
-
setPrice
public void setPrice(CurrencyAmount price)
The price.
-
setFee
public void setFee(CurrencyAmount fee)
The fee that was charged by the exchange for this trade.
-
setUserReference
public void setUserReference(String userReference)
An identifier provided by the user on placement that uniquely identifies the order of this trade.
-
setTimestamp
public void setTimestamp(ZonedDateTime timestamp)
The timestamp of the trade.
-
toString
public String toString()
- Overrides:
toString
in classBaseDomain
-
-