public class FuturesOrder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FuturesOrder.FinishAsEnum
How the order is finished.
|
static class |
FuturesOrder.StatusEnum
Order status - `open`: waiting to be traded - `finished`: finished
|
static class |
FuturesOrder.TifEnum
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, reduce-only
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_CLOSE |
static String |
SERIALIZED_NAME_CONTRACT |
static String |
SERIALIZED_NAME_CREATE_TIME |
static String |
SERIALIZED_NAME_FILL_PRICE |
static String |
SERIALIZED_NAME_FINISH_AS |
static String |
SERIALIZED_NAME_FINISH_TIME |
static String |
SERIALIZED_NAME_ICEBERG |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_IS_CLOSE |
static String |
SERIALIZED_NAME_IS_LIQ |
static String |
SERIALIZED_NAME_IS_REDUCE_ONLY |
static String |
SERIALIZED_NAME_LEFT |
static String |
SERIALIZED_NAME_MKFR |
static String |
SERIALIZED_NAME_PRICE |
static String |
SERIALIZED_NAME_REDUCE_ONLY |
static String |
SERIALIZED_NAME_REFU |
static String |
SERIALIZED_NAME_SIZE |
static String |
SERIALIZED_NAME_STATUS |
static String |
SERIALIZED_NAME_TEXT |
static String |
SERIALIZED_NAME_TIF |
static String |
SERIALIZED_NAME_TKFR |
static String |
SERIALIZED_NAME_USER |
| Constructor and Description |
|---|
FuturesOrder() |
| Modifier and Type | Method and Description |
|---|---|
FuturesOrder |
close(Boolean close) |
FuturesOrder |
contract(String contract) |
boolean |
equals(Object o) |
Boolean |
getClose()
Set as `true` to close the position, with `size` set to 0
|
String |
getContract()
Futures contract
|
Double |
getCreateTime()
Order creation time
|
String |
getFillPrice()
Fill price of the order
|
FuturesOrder.FinishAsEnum |
getFinishAs()
How the order is 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
|
String |
getText()
User defined information.
|
FuturesOrder.TifEnum |
getTif()
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, reduce-only
|
String |
getTkfr()
Taker fee
|
Integer |
getUser()
User ID
|
int |
hashCode() |
FuturesOrder |
iceberg(Long iceberg) |
FuturesOrder |
price(String price) |
FuturesOrder |
reduceOnly(Boolean reduceOnly) |
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 |
setText(String text) |
void |
setTif(FuturesOrder.TifEnum tif) |
FuturesOrder |
size(Long size) |
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
@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)
Copyright © 2021. All rights reserved.