public class BatchFuturesOrder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchFuturesOrder.AutoSizeEnum
Set side to close dual-mode position.
|
static class |
BatchFuturesOrder.FinishAsEnum
How the order was finished.
|
static class |
BatchFuturesOrder.StatusEnum
Order status - `open`: waiting to be traded - `finished`: finished
|
static class |
BatchFuturesOrder.StpActEnum
Self-Trading Prevention Action.
|
static class |
BatchFuturesOrder.TifEnum
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none
|
| Constructor and Description |
|---|
BatchFuturesOrder() |
| Modifier and Type | Method and Description |
|---|---|
BatchFuturesOrder |
autoSize(BatchFuturesOrder.AutoSizeEnum autoSize) |
BatchFuturesOrder |
close(Boolean close) |
BatchFuturesOrder |
contract(String contract) |
BatchFuturesOrder |
detail(String detail) |
boolean |
equals(Object o) |
BatchFuturesOrder.AutoSizeEnum |
getAutoSize()
Set side to close dual-mode position.
|
Boolean |
getClose()
Set as `true` to close the position, with `size` set to 0
|
String |
getContract()
Futures contract
|
Double |
getCreateTime()
Creation time of order
|
String |
getDetail()
Error detail, only present if execution failed and details need to be given
|
String |
getFillPrice()
Fill price of the order
|
BatchFuturesOrder.FinishAsEnum |
getFinishAs()
How the order was finished.
|
Double |
getFinishTime()
Order finished time.
|
Long |
getIceberg()
Display size for iceberg order.
|
Long |
getId()
Futures order ID
|
Boolean |
getIsClose()
Is the order to close position
|
Boolean |
getIsLiq()
Is the order for liquidation
|
Boolean |
getIsReduceOnly()
Is the order reduce-only
|
String |
getLabel()
Error label, only exists if execution fails
|
Long |
getLeft()
Size left to be traded
|
String |
getMkfr()
Maker fee
|
String |
getPrice()
Order price.
|
Boolean |
getReduceOnly()
Set as `true` to be reduce-only order
|
Integer |
getRefu()
Reference user ID
|
Long |
getSize()
Order size.
|
BatchFuturesOrder.StatusEnum |
getStatus()
Order status - `open`: waiting to be traded - `finished`: finished
|
BatchFuturesOrder.StpActEnum |
getStpAct()
Self-Trading Prevention Action.
|
Integer |
getStpId()
Orders between users in the same `stp_id` group are not allowed to be self-traded 1.
|
Boolean |
getSucceeded()
Whether the batch of orders succeeded
|
String |
getText()
User defined information.
|
BatchFuturesOrder.TifEnum |
getTif()
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none
|
String |
getTkfr()
Taker fee
|
Integer |
getUser()
User ID
|
int |
hashCode() |
BatchFuturesOrder |
iceberg(Long iceberg) |
BatchFuturesOrder |
label(String label) |
BatchFuturesOrder |
price(String price) |
BatchFuturesOrder |
reduceOnly(Boolean reduceOnly) |
void |
setAutoSize(BatchFuturesOrder.AutoSizeEnum autoSize) |
void |
setClose(Boolean close) |
void |
setContract(String contract) |
void |
setDetail(String detail) |
void |
setIceberg(Long iceberg) |
void |
setLabel(String label) |
void |
setPrice(String price) |
void |
setReduceOnly(Boolean reduceOnly) |
void |
setSize(Long size) |
void |
setStpAct(BatchFuturesOrder.StpActEnum stpAct) |
void |
setSucceeded(Boolean succeeded) |
void |
setText(String text) |
void |
setTif(BatchFuturesOrder.TifEnum tif) |
BatchFuturesOrder |
size(Long size) |
BatchFuturesOrder |
stpAct(BatchFuturesOrder.StpActEnum stpAct) |
BatchFuturesOrder |
succeeded(Boolean succeeded) |
BatchFuturesOrder |
text(String text) |
BatchFuturesOrder |
tif(BatchFuturesOrder.TifEnum tif) |
String |
toString() |
public static final String SERIALIZED_NAME_SUCCEEDED
public static final String SERIALIZED_NAME_LABEL
public static final String SERIALIZED_NAME_DETAIL
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_FINISH_AS
public static final String SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_CONTRACT
public static final String SERIALIZED_NAME_SIZE
public static final String SERIALIZED_NAME_ICEBERG
public static final String SERIALIZED_NAME_PRICE
public static final String SERIALIZED_NAME_CLOSE
public static final String SERIALIZED_NAME_IS_CLOSE
public static final String SERIALIZED_NAME_REDUCE_ONLY
public static final String SERIALIZED_NAME_IS_REDUCE_ONLY
public static final String SERIALIZED_NAME_IS_LIQ
public static final String SERIALIZED_NAME_TIF
public static final String SERIALIZED_NAME_LEFT
public static final String SERIALIZED_NAME_FILL_PRICE
public static final String SERIALIZED_NAME_TEXT
public static final String SERIALIZED_NAME_TKFR
public static final String SERIALIZED_NAME_MKFR
public static final String SERIALIZED_NAME_REFU
public static final String SERIALIZED_NAME_AUTO_SIZE
public static final String SERIALIZED_NAME_STP_ACT
public static final String SERIALIZED_NAME_STP_ID
public BatchFuturesOrder succeeded(Boolean succeeded)
@Nullable public Boolean getSucceeded()
public void setSucceeded(Boolean succeeded)
public BatchFuturesOrder label(String label)
@Nullable public String getLabel()
public void setLabel(String label)
public BatchFuturesOrder detail(String detail)
@Nullable public String getDetail()
public void setDetail(String detail)
@Nullable public Double getFinishTime()
@Nullable public BatchFuturesOrder.FinishAsEnum getFinishAs()
@Nullable public BatchFuturesOrder.StatusEnum getStatus()
public BatchFuturesOrder contract(String contract)
public void setContract(String contract)
public BatchFuturesOrder size(Long size)
@Nullable public Long getSize()
public void setSize(Long size)
public BatchFuturesOrder iceberg(Long iceberg)
@Nullable public Long getIceberg()
public void setIceberg(Long iceberg)
public BatchFuturesOrder price(String price)
@Nullable public String getPrice()
public void setPrice(String price)
public BatchFuturesOrder close(Boolean close)
@Nullable public Boolean getClose()
public void setClose(Boolean close)
public BatchFuturesOrder reduceOnly(Boolean reduceOnly)
@Nullable public Boolean getReduceOnly()
public void setReduceOnly(Boolean reduceOnly)
@Nullable public Boolean getIsReduceOnly()
public BatchFuturesOrder tif(BatchFuturesOrder.TifEnum tif)
@Nullable public BatchFuturesOrder.TifEnum getTif()
public void setTif(BatchFuturesOrder.TifEnum tif)
public BatchFuturesOrder text(String text)
@Nullable public String getText()
public void setText(String text)
public BatchFuturesOrder autoSize(BatchFuturesOrder.AutoSizeEnum autoSize)
@Nullable public BatchFuturesOrder.AutoSizeEnum getAutoSize()
public void setAutoSize(BatchFuturesOrder.AutoSizeEnum autoSize)
public BatchFuturesOrder stpAct(BatchFuturesOrder.StpActEnum stpAct)
@Nullable public BatchFuturesOrder.StpActEnum getStpAct()
public void setStpAct(BatchFuturesOrder.StpActEnum stpAct)
@Nullable public Integer getStpId()
Copyright © 2023. All rights reserved.