Class Order
java.lang.Object
tech.cassandre.trading.bot.util.base.domain.BaseDomain
tech.cassandre.trading.bot.domain.Order
Order (map "ORDERS" table).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Amount that was ordered.Weighted Average price of the fills in the order.Amount to be ordered / amount that has been matched against order on the order book/filled.Currency pair.The leverage to use for margin related to this order.Limit price.Market price - The price Cassandre had when the order was created.An identifier set by the exchange that uniquely identifies the order.Order status.The strategy that created the order.The timestamp of the order.All trades related to order.getType()
Order type i.e.getUid()
Technical ID.An identifier provided by the user on placement that uniquely identifies the order.final int
hashCode()
void
setAmount
(CurrencyAmount amount) Amount that was ordered.void
setAveragePrice
(CurrencyAmount averagePrice) Weighted Average price of the fills in the order.void
setCumulativeAmount
(CurrencyAmount cumulativeAmount) Amount to be ordered / amount that has been matched against order on the order book/filled.void
setCurrencyPair
(String currencyPair) Currency pair.void
setLeverage
(String leverage) The leverage to use for margin related to this order.void
setLimitPrice
(CurrencyAmount limitPrice) Limit price.void
setMarketPrice
(CurrencyAmount marketPrice) Market price - The price Cassandre had when the order was created.void
setOrderId
(String orderId) An identifier set by the exchange that uniquely identifies the order.void
setStatus
(OrderStatusDTO status) Order status.void
setStrategy
(Strategy strategy) The strategy that created the order.void
setTimestamp
(ZonedDateTime timestamp) The timestamp of the order.void
All trades related to order.void
setType
(OrderTypeDTO type) Order type i.e.void
Technical ID.void
setUserReference
(String userReference) An identifier provided by the user on placement that uniquely identifies the order.toString()
Methods inherited from class tech.cassandre.trading.bot.util.base.domain.BaseDomain
getCreatedOn, getUpdatedOn, setCreatedOn, setUpdatedOn
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
equals
-
hashCode
public final int hashCode() -
getUid
Technical ID. -
getOrderId
An identifier set by the exchange that uniquely identifies the order. -
getType
Order type i.e. bid (buy) or ask (sell). -
getStrategy
The strategy that created the order. -
getCurrencyPair
Currency pair. -
getAmount
Amount that was ordered. -
getAveragePrice
Weighted Average price of the fills in the order. -
getLimitPrice
Limit price. -
getMarketPrice
Market price - The price Cassandre had when the order was created. -
getLeverage
The leverage to use for margin related to this order. -
getStatus
Order status. -
getCumulativeAmount
Amount to be ordered / amount that has been matched against order on the order book/filled. -
getUserReference
An identifier provided by the user on placement that uniquely identifies the order. -
getTimestamp
The timestamp of the order. -
getTrades
All trades related to order. -
setUid
Technical ID. -
setOrderId
An identifier set by the exchange that uniquely identifies the order. -
setType
Order type i.e. bid (buy) or ask (sell). -
setStrategy
The strategy that created the order. -
setCurrencyPair
Currency pair. -
setAmount
Amount that was ordered. -
setAveragePrice
Weighted Average price of the fills in the order. -
setLimitPrice
Limit price. -
setMarketPrice
Market price - The price Cassandre had when the order was created. -
setLeverage
The leverage to use for margin related to this order. -
setStatus
Order status. -
setCumulativeAmount
Amount to be ordered / amount that has been matched against order on the order book/filled. -
setUserReference
An identifier provided by the user on placement that uniquely identifies the order. -
setTimestamp
The timestamp of the order. -
setTrades
All trades related to order. -
toString
- Overrides:
toString
in classBaseDomain
-