Class Trade
java.lang.Object
tech.cassandre.trading.bot.util.base.domain.BaseDomain
tech.cassandre.trading.bot.domain.Trade
Trade (map "TRADES" table).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Amount that was ordered.Currency pair.getFee()
The fee that was charged by the exchange for this trade.getOrder()
The order responsible for this trade.getPrice()
The price.The timestamp of the trade.An identifier set by the exchange that uniquely identifies the trade.getType()
Trade type i.e.getUid()
Technical ID.An identifier provided by the user on placement that uniquely identifies the order of this trade.final 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
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
Technical ID.void
setUserReference
(String userReference) An identifier provided by the user on placement that uniquely identifies the order of this trade.toString()
Methods inherited from class tech.cassandre.trading.bot.util.base.domain.BaseDomain
getCreatedOn, getUpdatedOn, setCreatedOn, setUpdatedOn
-
Constructor Details
-
Trade
public Trade()
-
-
Method Details
-
equals
-
hashCode
public final int hashCode() -
getUid
Technical ID. -
getTradeId
An identifier set by the exchange that uniquely identifies the trade. -
getType
Trade type i.e. bid (buy) or ask (sell). -
getOrder
The order responsible for this trade. -
getCurrencyPair
Currency pair. -
getAmount
Amount that was ordered. -
getPrice
The price. -
getFee
The fee that was charged by the exchange for this trade. -
getUserReference
An identifier provided by the user on placement that uniquely identifies the order of this trade. -
getTimestamp
The timestamp of the trade. -
setUid
Technical ID. -
setTradeId
An identifier set by the exchange that uniquely identifies the trade. -
setType
Trade type i.e. bid (buy) or ask (sell). -
setOrder
The order responsible for this trade. -
setCurrencyPair
Currency pair. -
setAmount
Amount that was ordered. -
setPrice
The price. -
setFee
The fee that was charged by the exchange for this trade. -
setUserReference
An identifier provided by the user on placement that uniquely identifies the order of this trade. -
setTimestamp
The timestamp of the trade. -
toString
- Overrides:
toString
in classBaseDomain
-