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 (currency).String
getCurrencyPair()
Currency pair.CurrencyAmount
getFee()
The fee that was charged by the exchange for this trade.Long
getId()
Technical ID.Long
getOrder()
The id of the order responsible for execution of this trade.String
getOrderId()
The id of the order responsible for execution of 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()
Order type i.e. bid or ask.String
getUserReference()
An identifier provided by the user on placement that uniquely identifies the order.int
hashCode()
void
setAmount(CurrencyAmount amount)
Amount that was ordered (currency).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(Long order)
The id of the order responsible for execution of this trade.void
setOrderId(String orderId)
The id of the order responsible for execution of 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)
Order type i.e. bid or ask.void
setUserReference(String userReference)
An identifier provided by the user on placement that uniquely identifies the order.String
toString()
-
Methods inherited from class tech.cassandre.trading.bot.util.base.domain.BaseDomain
canEqual, getCreatedOn, getUpdatedOn, setCreatedOn, setUpdatedOn
-
-
-
-
Method Detail
-
equals
public final boolean equals(Object o)
- Overrides:
equals
in classBaseDomain
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classBaseDomain
-
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()
Order type i.e. bid or ask.
-
getOrder
public Long getOrder()
The id of the order responsible for execution of this trade.
-
getOrderId
public String getOrderId()
The id of the order responsible for execution of this trade.
-
getCurrencyPair
public String getCurrencyPair()
Currency pair.
-
getAmount
public CurrencyAmount getAmount()
Amount that was ordered (currency).
-
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.
-
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)
Order type i.e. bid or ask.
-
setOrder
public void setOrder(Long order)
The id of the order responsible for execution of this trade.
-
setOrderId
public void setOrderId(String orderId)
The id of the order responsible for execution of this trade.
-
setCurrencyPair
public void setCurrencyPair(String currencyPair)
Currency pair.
-
setAmount
public void setAmount(CurrencyAmount amount)
Amount that was ordered (currency).
-
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.
-
setTimestamp
public void setTimestamp(ZonedDateTime timestamp)
The timestamp of the trade.
-
toString
public String toString()
- Overrides:
toString
in classBaseDomain
-
-