Class TradeDTO.TradeDTOBuilder
java.lang.Object
tech.cassandre.trading.bot.dto.trade.TradeDTO.TradeDTOBuilder
- Enclosing class:
- TradeDTO
-
Method Summary
Modifier and TypeMethodDescriptionamount
(CurrencyAmountDTO amount) Amount of the trade.build()
currencyPair
(CurrencyPairDTO currencyPair) Currency pair.fee
(CurrencyAmountDTO fee) The fee that was charged by the exchange for this order.The order object responsible for this trade.The order id of the order responsible for this trade.price
(CurrencyAmountDTO price) The price.timestamp
(ZonedDateTime timestamp) The timestamp of the trade.toString()
An identifier set by the exchange that uniquely identifies the trade.type
(OrderTypeDTO type) Trade type i.e.Technical id.userReference
(String userReference) An identifier provided by the user on placement that uniquely identifies the order.
-
Method Details
-
uid
Technical id.- Returns:
this
.
-
tradeId
An identifier set by the exchange that uniquely identifies the trade.- Returns:
this
.
-
type
Trade type i.e. bid (buy) or ask (sell).- Returns:
this
.
-
orderId
The order id of the order responsible for this trade.- Returns:
this
.
-
order
The order object responsible for this trade.- Returns:
this
.
-
currencyPair
Currency pair.- Returns:
this
.
-
amount
Amount of the trade.- Returns:
this
.
-
price
The price.- Returns:
this
.
-
fee
The fee that was charged by the exchange for this order.- Returns:
this
.
-
userReference
An identifier provided by the user on placement that uniquely identifies the order.- Returns:
this
.
-
timestamp
The timestamp of the trade.- Returns:
this
.
-
build
-
toString
-