public class Order extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Order.AccountEnum
Account type.
|
static class |
Order.FinishAsEnum
How the order was finished.
|
static class |
Order.SideEnum
Order side
|
static class |
Order.StatusEnum
Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled
|
static class |
Order.StpActEnum
Self-Trading Prevention Action.
|
static class |
Order.TimeInForceEnum
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 Only `ioc` and `fok` are supported when `type`=`market`
|
static class |
Order.TypeEnum
Order Type - limit : Limit Order - market : Market Order
|
| Constructor and Description |
|---|
Order() |
| Modifier and Type | Method and Description |
|---|---|
Order |
account(Order.AccountEnum account) |
Order |
amount(String amount) |
Order |
autoBorrow(Boolean autoBorrow) |
Order |
autoRepay(Boolean autoRepay) |
Order |
currencyPair(String currencyPair) |
boolean |
equals(Object o) |
Order.AccountEnum |
getAccount()
Account type.
|
String |
getAmendText()
The custom data that the user remarked when amending the order
|
String |
getAmount()
When `type` is limit, it refers to base currency.
|
Boolean |
getAutoBorrow()
Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough.
|
Boolean |
getAutoRepay()
Enable or disable automatic repayment for automatic borrow loan generated by cross margin order.
|
String |
getAvgDealPrice()
Average fill price
|
String |
getCreateTime()
Creation time of order
|
Long |
getCreateTimeMs()
Creation time of order (in milliseconds)
|
String |
getCurrencyPair()
Currency pair
|
String |
getFee()
Fee deducted
|
String |
getFeeCurrency()
Fee currency unit
|
String |
getFilledTotal()
Total filled in quote currency
|
String |
getFillPrice()
Total filled in quote currency.
|
Order.FinishAsEnum |
getFinishAs()
How the order was finished.
|
Boolean |
getGtDiscount()
Whether GT fee discount is used
|
String |
getGtFee()
GT used to deduct fee
|
String |
getGtMakerFee()
GT used to deduct maker fee
|
String |
getGtTakerFee()
GT used to deduct taker fee
|
String |
getIceberg()
Amount to display for the iceberg order.
|
String |
getId()
Order ID
|
String |
getLeft()
Amount left to fill
|
String |
getPointFee()
Points used to deduct fee
|
String |
getPrice()
Price can't be empty when `type`= `limit`
|
String |
getRebatedFee()
Rebated fee
|
String |
getRebatedFeeCurrency()
Rebated fee currency unit
|
Order.SideEnum |
getSide()
Order side
|
Order.StatusEnum |
getStatus()
Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled
|
Order.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.
|
Order.TimeInForceEnum |
getTimeInForce()
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 Only `ioc` and `fok` are supported when `type`=`market`
|
Order.TypeEnum |
getType()
Order Type - limit : Limit Order - market : Market Order
|
String |
getUpdateTime()
Last modification time of order
|
Long |
getUpdateTimeMs()
Last modification time of order (in milliseconds)
|
int |
hashCode() |
Order |
iceberg(String iceberg) |
Order |
price(String price) |
void |
setAccount(Order.AccountEnum account) |
void |
setAmount(String amount) |
void |
setAutoBorrow(Boolean autoBorrow) |
void |
setAutoRepay(Boolean autoRepay) |
void |
setCurrencyPair(String currencyPair) |
void |
setIceberg(String iceberg) |
void |
setPrice(String price) |
void |
setSide(Order.SideEnum side) |
void |
setStpAct(Order.StpActEnum stpAct) |
void |
setText(String text) |
void |
setTimeInForce(Order.TimeInForceEnum timeInForce) |
void |
setType(Order.TypeEnum type) |
Order |
side(Order.SideEnum side) |
Order |
stpAct(Order.StpActEnum stpAct) |
Order |
text(String text) |
Order |
timeInForce(Order.TimeInForceEnum timeInForce) |
String |
toString() |
Order |
type(Order.TypeEnum type) |
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_TEXT
public static final String SERIALIZED_NAME_AMEND_TEXT
public static final String SERIALIZED_NAME_CREATE_TIME
public static final String SERIALIZED_NAME_UPDATE_TIME
public static final String SERIALIZED_NAME_CREATE_TIME_MS
public static final String SERIALIZED_NAME_UPDATE_TIME_MS
public static final String SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_CURRENCY_PAIR
public static final String SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_ACCOUNT
public static final String SERIALIZED_NAME_SIDE
public static final String SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_PRICE
public static final String SERIALIZED_NAME_TIME_IN_FORCE
public static final String SERIALIZED_NAME_ICEBERG
public static final String SERIALIZED_NAME_AUTO_BORROW
public static final String SERIALIZED_NAME_AUTO_REPAY
public static final String SERIALIZED_NAME_LEFT
public static final String SERIALIZED_NAME_FILL_PRICE
public static final String SERIALIZED_NAME_FILLED_TOTAL
public static final String SERIALIZED_NAME_AVG_DEAL_PRICE
public static final String SERIALIZED_NAME_FEE
public static final String SERIALIZED_NAME_FEE_CURRENCY
public static final String SERIALIZED_NAME_POINT_FEE
public static final String SERIALIZED_NAME_GT_FEE
public static final String SERIALIZED_NAME_GT_MAKER_FEE
public static final String SERIALIZED_NAME_GT_TAKER_FEE
public static final String SERIALIZED_NAME_GT_DISCOUNT
public static final String SERIALIZED_NAME_REBATED_FEE
public static final String SERIALIZED_NAME_REBATED_FEE_CURRENCY
public static final String SERIALIZED_NAME_STP_ID
public static final String SERIALIZED_NAME_STP_ACT
public static final String SERIALIZED_NAME_FINISH_AS
@Nullable public String getText()
public void setText(String text)
@Nullable public String getAmendText()
@Nullable public String getUpdateTime()
@Nullable public Long getCreateTimeMs()
@Nullable public Long getUpdateTimeMs()
@Nullable public Order.StatusEnum getStatus()
public String getCurrencyPair()
public void setCurrencyPair(String currencyPair)
public Order type(Order.TypeEnum type)
@Nullable public Order.TypeEnum getType()
public void setType(Order.TypeEnum type)
public Order account(Order.AccountEnum account)
@Nullable public Order.AccountEnum getAccount()
public void setAccount(Order.AccountEnum account)
public Order side(Order.SideEnum side)
public Order.SideEnum getSide()
public void setSide(Order.SideEnum side)
public String getAmount()
public void setAmount(String amount)
@Nullable public String getPrice()
public void setPrice(String price)
public Order timeInForce(Order.TimeInForceEnum timeInForce)
@Nullable public Order.TimeInForceEnum getTimeInForce()
public void setTimeInForce(Order.TimeInForceEnum timeInForce)
@Nullable public String getIceberg()
public void setIceberg(String iceberg)
@Nullable public Boolean getAutoBorrow()
public void setAutoBorrow(Boolean autoBorrow)
@Nullable public Boolean getAutoRepay()
public void setAutoRepay(Boolean autoRepay)
@Nullable public String getFillPrice()
@Nullable public String getFilledTotal()
@Nullable public String getGtMakerFee()
@Nullable public String getGtTakerFee()
@Nullable public Boolean getGtDiscount()
@Nullable public String getRebatedFeeCurrency()
@Nullable public Integer getStpId()
public Order stpAct(Order.StpActEnum stpAct)
@Nullable public Order.StpActEnum getStpAct()
public void setStpAct(Order.StpActEnum stpAct)
@Nullable public Order.FinishAsEnum getFinishAs()
Copyright © 2023. All rights reserved.