public class OptionsOrder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OptionsOrder.FinishAsEnum
How the order was finished.
|
static class |
OptionsOrder.StatusEnum
Order status - `open`: waiting to be traded - `finished`: finished
|
static class |
OptionsOrder.TifEnum
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee
|
| 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_REFR |
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 |
|---|
OptionsOrder() |
| Modifier and Type | Method and Description |
|---|---|
OptionsOrder |
close(Boolean close) |
OptionsOrder |
contract(String contract) |
boolean |
equals(Object o) |
Boolean |
getClose()
Set as `true` to close the position, with `size` set to 0
|
String |
getContract()
Contract name
|
Double |
getCreateTime()
Creation time of order
|
String |
getFillPrice()
Fill price of the order
|
OptionsOrder.FinishAsEnum |
getFinishAs()
How the order was finished.
|
Double |
getFinishTime()
Order finished time.
|
Long |
getIceberg()
Display size for iceberg order.
|
Long |
getId()
Options 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
|
String |
getRefr()
Referrer rebate
|
Integer |
getRefu()
Reference user ID
|
Long |
getSize()
Order size.
|
OptionsOrder.StatusEnum |
getStatus()
Order status - `open`: waiting to be traded - `finished`: finished
|
String |
getText()
User defined information.
|
OptionsOrder.TifEnum |
getTif()
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee
|
String |
getTkfr()
Taker fee
|
Integer |
getUser()
User ID
|
int |
hashCode() |
OptionsOrder |
iceberg(Long iceberg) |
OptionsOrder |
price(String price) |
OptionsOrder |
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(OptionsOrder.TifEnum tif) |
OptionsOrder |
size(Long size) |
OptionsOrder |
text(String text) |
OptionsOrder |
tif(OptionsOrder.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_REFR
@Nullable public Double getFinishTime()
@Nullable public OptionsOrder.FinishAsEnum getFinishAs()
@Nullable public OptionsOrder.StatusEnum getStatus()
public OptionsOrder contract(String contract)
public String getContract()
public void setContract(String contract)
public OptionsOrder size(Long size)
public Long getSize()
public void setSize(Long size)
public OptionsOrder iceberg(Long iceberg)
@Nullable public Long getIceberg()
public void setIceberg(Long iceberg)
public OptionsOrder price(String price)
@Nullable public String getPrice()
public void setPrice(String price)
public OptionsOrder close(Boolean close)
@Nullable public Boolean getClose()
public void setClose(Boolean close)
public OptionsOrder reduceOnly(Boolean reduceOnly)
@Nullable public Boolean getReduceOnly()
public void setReduceOnly(Boolean reduceOnly)
@Nullable public Boolean getIsReduceOnly()
public OptionsOrder tif(OptionsOrder.TifEnum tif)
@Nullable public OptionsOrder.TifEnum getTif()
public void setTif(OptionsOrder.TifEnum tif)
public OptionsOrder text(String text)
@Nullable public String getText()
public void setText(String text)
Copyright © 2023. All rights reserved.