public class FuturesPriceTriggeredOrder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FuturesPriceTriggeredOrder.FinishAsEnum
How order is finished
|
static class |
FuturesPriceTriggeredOrder.StatusEnum
Auto order status - `open`: order is active - `finished`: order is finished - `inactive`: order is not active, only for close-long-order or close-short-order - `invalid`: order is invalid, only for close-long-order or close-short-order
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_CREATE_TIME |
static String |
SERIALIZED_NAME_FINISH_AS |
static String |
SERIALIZED_NAME_FINISH_TIME |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_INITIAL |
static String |
SERIALIZED_NAME_ME_ORDER_ID |
static String |
SERIALIZED_NAME_ORDER_TYPE |
static String |
SERIALIZED_NAME_REASON |
static String |
SERIALIZED_NAME_STATUS |
static String |
SERIALIZED_NAME_TRADE_ID |
static String |
SERIALIZED_NAME_TRIGGER |
static String |
SERIALIZED_NAME_USER |
| Constructor and Description |
|---|
FuturesPriceTriggeredOrder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Double |
getCreateTime()
Creation time
|
FuturesPriceTriggeredOrder.FinishAsEnum |
getFinishAs()
How order is finished
|
Double |
getFinishTime()
Finished time
|
Long |
getId()
Auto order ID
|
FuturesInitialOrder |
getInitial()
Get initial
|
String |
getMeOrderId()
Corresponding order ID of order take-profit/stop-loss.
|
String |
getOrderType()
Take-profit/stop-loss types, which include: - `close-long-order`: order take-profit/stop-loss, close long position - `close-short-order`: order take-profit/stop-loss, close short position - `close-long-position`: position take-profit/stop-loss, close long position - `close-short-position`: position take-profit/stop-loss, close short position - `plan-close-long-position`: position planned take-profit/stop-loss, close long position - `plan-close-short-position`: position planned take-profit/stop-loss, close short position The order take-profit/stop-loss can not be passed by request.
|
String |
getReason()
Additional remarks on how the order was finished
|
FuturesPriceTriggeredOrder.StatusEnum |
getStatus()
Auto order status - `open`: order is active - `finished`: order is finished - `inactive`: order is not active, only for close-long-order or close-short-order - `invalid`: order is invalid, only for close-long-order or close-short-order
|
Long |
getTradeId()
ID of the newly created order on condition triggered
|
FuturesPriceTrigger |
getTrigger()
Get trigger
|
Integer |
getUser()
User ID
|
int |
hashCode() |
FuturesPriceTriggeredOrder |
initial(FuturesInitialOrder initial) |
FuturesPriceTriggeredOrder |
orderType(String orderType) |
void |
setInitial(FuturesInitialOrder initial) |
void |
setOrderType(String orderType) |
void |
setTrigger(FuturesPriceTrigger trigger) |
String |
toString() |
FuturesPriceTriggeredOrder |
trigger(FuturesPriceTrigger trigger) |
public static final String SERIALIZED_NAME_INITIAL
public static final String SERIALIZED_NAME_TRIGGER
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_USER
public static final String SERIALIZED_NAME_CREATE_TIME
public static final String SERIALIZED_NAME_FINISH_TIME
public static final String SERIALIZED_NAME_TRADE_ID
public static final String SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_FINISH_AS
public static final String SERIALIZED_NAME_REASON
public static final String SERIALIZED_NAME_ORDER_TYPE
public static final String SERIALIZED_NAME_ME_ORDER_ID
public FuturesPriceTriggeredOrder initial(FuturesInitialOrder initial)
public FuturesInitialOrder getInitial()
public void setInitial(FuturesInitialOrder initial)
public FuturesPriceTriggeredOrder trigger(FuturesPriceTrigger trigger)
public FuturesPriceTrigger getTrigger()
public void setTrigger(FuturesPriceTrigger trigger)
@Nullable public Long getTradeId()
@Nullable public FuturesPriceTriggeredOrder.StatusEnum getStatus()
@Nullable public FuturesPriceTriggeredOrder.FinishAsEnum getFinishAs()
@Nullable public String getReason()
public FuturesPriceTriggeredOrder orderType(String orderType)
@Nullable public String getOrderType()
public void setOrderType(String orderType)
@Nullable public String getMeOrderId()
Copyright © 2023. All rights reserved.