Package org.knowm.xchange.kuna.dto
Class KunaOrder
java.lang.Object
org.knowm.xchange.kuna.dto.KunaOrder
Order of crypto currency. Instances of this type are immutable, constructed with a dedicated
Builder implementation.
- Author:
- Dat Bui
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KunaOrder.Builder
builder()
Creates new builder.Returns the average trade price for the order.Retruns the time of placing the order.Returns sold amount of crypto currency.int
getId()
Returns order id.Retruns market ID.Returns order type — limit or market.getPrice()
Price price for 1 unit of a crypto currency.Returns unfilled amount of crypto currency.getSide()
Returns always "sell".getState()
Returns order state — always wait.int
Retuns volume of trading in crypto currency.
-
Field Details
-
ORD_TYPE
- See Also:
-
AVG_PRICE
- See Also:
-
CREATED_AT
- See Also:
-
REMAINING_VOLUME
- See Also:
-
EXECUTED_VOLUME
- See Also:
-
TRADES_COUNT
- See Also:
-
-
Method Details
-
builder
Creates new builder.- Returns:
- builder
-
getId
public int getId()Returns order id.- Returns:
- order id
-
getSide
Returns always "sell".- Returns:
- order side
-
getOrderType
Returns order type — limit or market.- Returns:
- order type
-
getPrice
Price price for 1 unit of a crypto currency.- Returns:
- price
-
getAveragePrice
Returns the average trade price for the order.- Returns:
- average price
-
getState
Returns order state — always wait.- Returns:
- order state
-
getMarket
Retruns market ID.- Returns:
- market ID
-
getCreatedAt
Retruns the time of placing the order.- Returns:
- order place time
-
getVolume
Retuns volume of trading in crypto currency.- Returns:
- trading volume
-
getRemainingVolume
Returns unfilled amount of crypto currency.- Returns:
- unfilled amount
-
getExecutedVolume
Returns sold amount of crypto currency.- Returns:
- sold amount
-
getTradesCount
public int getTradesCount()
-