public class FuturesOrder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FuturesOrder.AutoSizeEnum
Set side to close dual-mode position.
|
static class |
FuturesOrder.FinishAsEnum
How the order was finished.
|
static class |
FuturesOrder.StatusEnum
Order status - `open`: waiting to be traded - `finished`: finished
|
static class |
FuturesOrder.StpActEnum
Self-Trading Prevention Action.
|
static class |
FuturesOrder.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 |
|---|
FuturesOrder() |
| Modifier and Type | Method and Description |
|---|---|
FuturesOrder |
autoSize(FuturesOrder.AutoSizeEnum autoSize) |
FuturesOrder |
close(Boolean close) |
FuturesOrder |
contract(String contract) |
boolean |
equals(Object o) |
String |
getAmendText()
The custom data that the user remarked when amending the order
|
FuturesOrder.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 |
getFillPrice()
Fill price of the order
|
FuturesOrder.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
|
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.
|
FuturesOrder.StatusEnum |
getStatus()
Order status - `open`: waiting to be traded - `finished`: finished
|
FuturesOrder.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.
|
String |
getText()
User defined information.
|
FuturesOrder.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() |
FuturesOrder |
iceberg(Long iceberg) |
FuturesOrder |
price(String price) |
FuturesOrder |
reduceOnly(Boolean reduceOnly) |
void |
setAutoSize(FuturesOrder.AutoSizeEnum autoSize) |
void |
setClose(Boolean close) |
void |
setContract(String contract) |
void |
setIceberg(Long iceberg) |
void |
setPrice(String price) |
void |
setReduceOnly(Boolean reduceOnly) |
void |
setSize(Long size) |
void |
setStpAct(FuturesOrder.StpActEnum stpAct) |
void |
setText(String text) |
void |
setTif(FuturesOrder.TifEnum tif) |
FuturesOrder |
size(Long size) |
FuturesOrder |
stpAct(FuturesOrder.StpActEnum stpAct) |
FuturesOrder |
text(String text) |
FuturesOrder |
tif(FuturesOrder.TifEnum tif) |
String |
toString() |
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_ID
public static final String SERIALIZED_NAME_STP_ACT
public static final String SERIALIZED_NAME_AMEND_TEXT
@Nullable public Double getFinishTime()
@Nullable public FuturesOrder.FinishAsEnum getFinishAs()
@Nullable public FuturesOrder.StatusEnum getStatus()
public FuturesOrder contract(String contract)
public String getContract()
public void setContract(String contract)
public FuturesOrder size(Long size)
public Long getSize()
public void setSize(Long size)
public FuturesOrder iceberg(Long iceberg)
@Nullable public Long getIceberg()
public void setIceberg(Long iceberg)
public FuturesOrder price(String price)
@Nullable public String getPrice()
public void setPrice(String price)
public FuturesOrder close(Boolean close)
@Nullable public Boolean getClose()
public void setClose(Boolean close)
public FuturesOrder reduceOnly(Boolean reduceOnly)
@Nullable public Boolean getReduceOnly()
public void setReduceOnly(Boolean reduceOnly)
@Nullable public Boolean getIsReduceOnly()
public FuturesOrder tif(FuturesOrder.TifEnum tif)
@Nullable public FuturesOrder.TifEnum getTif()
public void setTif(FuturesOrder.TifEnum tif)
public FuturesOrder text(String text)
@Nullable public String getText()
public void setText(String text)
public FuturesOrder autoSize(FuturesOrder.AutoSizeEnum autoSize)
@Nullable public FuturesOrder.AutoSizeEnum getAutoSize()
public void setAutoSize(FuturesOrder.AutoSizeEnum autoSize)
@Nullable public Integer getStpId()
public FuturesOrder stpAct(FuturesOrder.StpActEnum stpAct)
@Nullable public FuturesOrder.StpActEnum getStpAct()
public void setStpAct(FuturesOrder.StpActEnum stpAct)
@Nullable public String getAmendText()
Copyright © 2023. All rights reserved.