Uses of Enum
org.knowm.xchange.luno.dto.trade.OrderType
-
Uses of OrderType in org.knowm.xchange.luno
Modifier and TypeMethodDescriptionLunoAPI.createQuote
(OrderType type, BigDecimal baseAmount, String pair) Creates a new quote to buy or sell a particular amount.
You can specify either the exact amount that you want to pay or the exact amount that you want too receive.
For example, to buy exactly 0.1 Bitcoin using ZAR, you would create a quote to BUY 0.1 XBTZAR.LunoAPIImpl.createQuote
(OrderType type, BigDecimal baseAmount, String pair) LunoAuthenticated.createQuote
(si.mazi.rescu.ParamsDigest auth, OrderType type, BigDecimal baseAmount, String pair) Creates a new quote to buy or sell a particular amount.
You can specify either the exact amount that you want to pay or the exact amount that you want too receive.
For example, to buy exactly 0.1 Bitcoin using ZAR, you would create a quote to BUY 0.1 XBTZAR.LunoAPI.postLimitOrder
(String pair, OrderType type, BigDecimal volume, BigDecimal price, String baseAccountId, String counterAccountId) Create a new trade order.
Warning! Orders cannot be reversed once they have executed.LunoAPIImpl.postLimitOrder
(String pair, OrderType type, BigDecimal volume, BigDecimal price, String baseAccountId, String counterAccountId) LunoAuthenticated.postLimitOrder
(si.mazi.rescu.ParamsDigest auth, String pair, OrderType type, BigDecimal volume, BigDecimal price, String baseAccountId, String counterAccountId) Create a new trade order.
Warning! Orders cannot be reversed once they have executed.LunoAPI.postMarketOrder
(String pair, OrderType type, BigDecimal counterVolume, BigDecimal baseVolume, String baseAccountId, String counterAccountId) Create a new market order.
Warning! Orders cannot be reversed once they have executed.LunoAPIImpl.postMarketOrder
(String pair, OrderType type, BigDecimal counterVolume, BigDecimal baseVolume, String baseAccountId, String counterAccountId) LunoAuthenticated.postMarketOrder
(si.mazi.rescu.ParamsDigest auth, String pair, OrderType type, BigDecimal counterVolume, BigDecimal baseVolume, String baseAccountId, String counterAccountId) Create a new market order.
Warning! Orders cannot be reversed once they have executed. -
Uses of OrderType in org.knowm.xchange.luno.dto.trade
Modifier and TypeFieldDescriptionfinal OrderType
LunoOrders.Order.type
final OrderType
LunoUserTrades.UserTrade.type
Modifier and TypeMethodDescriptionstatic OrderType
static OrderType
Returns the enum constant of this type with the specified name.static OrderType[]
OrderType.values()
Returns an array containing the constants of this enum type, in the order they are declared.ModifierConstructorDescriptionOrder
(String orderId, long creationTimestamp, long expirationTimestamp, long completedTimestamp, OrderType type, State state, BigDecimal limitPrice, BigDecimal limitVolume, BigDecimal base, BigDecimal counter, BigDecimal feeBase, BigDecimal feeCounter, String pair) UserTrade
(String pair, String orderId, OrderType type, long timestamp, BigDecimal price, BigDecimal volume, BigDecimal base, BigDecimal counter, BigDecimal feeBase, BigDecimal feeCounter, boolean buy)