Class OrderPlacement
java.lang.Object
org.knowm.xchange.cryptofacilities.dto.trade.OrderPlacement
- All Implemented Interfaces:
OrderCommand
public class OrderPlacement extends Object implements OrderCommand
https://www.cryptofacilities.com/resources/hc/en-us/articles/360000547454-Batch-Order
-
Field Summary
Fields Modifier and Type Field Description String
cliOrdId
Optional.BigDecimal
limitPrice
The limit price associated with the order.String
order
Always sendString
orderTag
An arbitrary string provided client-side to tag the order for the purpose of mapping order sending instructions to the API’s responseOrderType
orderType
either lmt for a limit order, post for a post-only limit order or stp for a stop orderOrderSide
side
The direction of the order, either buy for a buy order or sell for a sell orderBigDecimal
size
The size associated with the orderBigDecimal
stopPrice
Optional.String
symbol
The symbol of the Futures -
Constructor Summary
Constructors Constructor Description OrderPlacement(String orderTag, OrderType orderType, String symbol, OrderSide side, BigDecimal size, BigDecimal limitPrice, BigDecimal stopPrice, String cliOrdId)
-
Method Summary
-
Field Details
-
order
Always send- See Also:
- Constant Field Values
-
orderTag
An arbitrary string provided client-side to tag the order for the purpose of mapping order sending instructions to the API’s response -
orderType
either lmt for a limit order, post for a post-only limit order or stp for a stop order -
symbol
The symbol of the Futures -
side
The direction of the order, either buy for a buy order or sell for a sell order -
size
The size associated with the order -
limitPrice
The limit price associated with the order. Must not have more than 2 decimal places -
stopPrice
Optional. The stop price associated with a stop order. Required if orderType is stp. Must not have more than 2 decimal places. Note that for stp orders, limitPrice is also required and denotes the worst price at which the stp order can get filled -
cliOrdId
Optional. The order identity that is specified from the user. It must be globally unique.
-
-
Constructor Details
-
OrderPlacement
public OrderPlacement(String orderTag, OrderType orderType, String symbol, OrderSide side, BigDecimal size, BigDecimal limitPrice, BigDecimal stopPrice, String cliOrdId)
-
-
Method Details