public class BatchOrder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchOrder.AccountEnum
Account type.
|
static class |
BatchOrder.FinishAsEnum
How the order was finished.
|
static class |
BatchOrder.SideEnum
Order side
|
static class |
BatchOrder.StatusEnum
Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled
|
static class |
BatchOrder.StpActEnum
Self-Trading Prevention Action.
|
static class |
BatchOrder.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
|
static class |
BatchOrder.TypeEnum
Order Type - limit : Limit Order - market : Market Order
|
| Constructor and Description |
|---|
BatchOrder() |
| Modifier and Type | Method and Description |
|---|---|
BatchOrder |
account(BatchOrder.AccountEnum account) |
BatchOrder |
amount(String amount) |
BatchOrder |
autoBorrow(Boolean autoBorrow) |
BatchOrder |
autoRepay(Boolean autoRepay) |
BatchOrder |
currencyPair(String currencyPair) |
boolean |
equals(Object o) |
BatchOrder.AccountEnum |
getAccount()
Account type.
|
String |
getAmount()
Trade amount
|
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 |
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.
|
BatchOrder.FinishAsEnum |
getFinishAs()
How the order was finished.
|
Boolean |
getGtDiscount()
Whether GT fee discount is used
|
String |
getGtFee()
GT used to deduct fee
|
String |
getIceberg()
Amount to display for the iceberg order.
|
String |
getId()
Order ID
|
String |
getLabel()
Error label, if any, otherwise an empty string
|
String |
getLeft()
Amount left to fill
|
String |
getMessage()
Detailed error message, if any, otherwise an empty string
|
String |
getPointFee()
Points used to deduct fee
|
String |
getPrice()
Order price
|
String |
getRebatedFee()
Rebated fee
|
String |
getRebatedFeeCurrency()
Rebated fee currency unit
|
BatchOrder.SideEnum |
getSide()
Order side
|
BatchOrder.StatusEnum |
getStatus()
Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled
|
BatchOrder.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.
|
BatchOrder.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
|
BatchOrder.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() |
BatchOrder |
iceberg(String iceberg) |
BatchOrder |
label(String label) |
BatchOrder |
message(String message) |
BatchOrder |
price(String price) |
void |
setAccount(BatchOrder.AccountEnum account) |
void |
setAmount(String amount) |
void |
setAutoBorrow(Boolean autoBorrow) |
void |
setAutoRepay(Boolean autoRepay) |
void |
setCurrencyPair(String currencyPair) |
void |
setIceberg(String iceberg) |
void |
setLabel(String label) |
void |
setMessage(String message) |
void |
setPrice(String price) |
void |
setSide(BatchOrder.SideEnum side) |
void |
setStpAct(BatchOrder.StpActEnum stpAct) |
void |
setSucceeded(Boolean succeeded) |
void |
setText(String text) |
void |
setTimeInForce(BatchOrder.TimeInForceEnum timeInForce) |
void |
setType(BatchOrder.TypeEnum type) |
BatchOrder |
side(BatchOrder.SideEnum side) |
BatchOrder |
stpAct(BatchOrder.StpActEnum stpAct) |
BatchOrder |
succeeded(Boolean succeeded) |
BatchOrder |
text(String text) |
BatchOrder |
timeInForce(BatchOrder.TimeInForceEnum timeInForce) |
String |
toString() |
BatchOrder |
type(BatchOrder.TypeEnum type) |
public static final String SERIALIZED_NAME_TEXT
public static final String SERIALIZED_NAME_SUCCEEDED
public static final String SERIALIZED_NAME_LABEL
public static final String SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_ID
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_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_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
public BatchOrder text(String text)
@Nullable public String getText()
public void setText(String text)
public BatchOrder succeeded(Boolean succeeded)
@Nullable public Boolean getSucceeded()
public void setSucceeded(Boolean succeeded)
public BatchOrder label(String label)
@Nullable public String getLabel()
public void setLabel(String label)
public BatchOrder message(String message)
@Nullable public String getMessage()
public void setMessage(String message)
@Nullable public String getUpdateTime()
@Nullable public Long getCreateTimeMs()
@Nullable public Long getUpdateTimeMs()
@Nullable public BatchOrder.StatusEnum getStatus()
public BatchOrder currencyPair(String currencyPair)
public void setCurrencyPair(String currencyPair)
public BatchOrder type(BatchOrder.TypeEnum type)
@Nullable public BatchOrder.TypeEnum getType()
public void setType(BatchOrder.TypeEnum type)
public BatchOrder account(BatchOrder.AccountEnum account)
@Nullable public BatchOrder.AccountEnum getAccount()
public void setAccount(BatchOrder.AccountEnum account)
public BatchOrder side(BatchOrder.SideEnum side)
@Nullable public BatchOrder.SideEnum getSide()
public void setSide(BatchOrder.SideEnum side)
public BatchOrder amount(String amount)
public void setAmount(String amount)
public BatchOrder price(String price)
public void setPrice(String price)
public BatchOrder timeInForce(BatchOrder.TimeInForceEnum timeInForce)
@Nullable public BatchOrder.TimeInForceEnum getTimeInForce()
public void setTimeInForce(BatchOrder.TimeInForceEnum timeInForce)
public BatchOrder iceberg(String iceberg)
@Nullable public String getIceberg()
public void setIceberg(String iceberg)
public BatchOrder autoBorrow(Boolean autoBorrow)
@Nullable public Boolean getAutoBorrow()
public void setAutoBorrow(Boolean autoBorrow)
public BatchOrder autoRepay(Boolean autoRepay)
@Nullable public Boolean getAutoRepay()
public void setAutoRepay(Boolean autoRepay)
@Nullable public String getFillPrice()
@Nullable public String getFilledTotal()
@Nullable public Boolean getGtDiscount()
@Nullable public String getRebatedFeeCurrency()
@Nullable public Integer getStpId()
public BatchOrder stpAct(BatchOrder.StpActEnum stpAct)
@Nullable public BatchOrder.StpActEnum getStpAct()
public void setStpAct(BatchOrder.StpActEnum stpAct)
@Nullable public BatchOrder.FinishAsEnum getFinishAs()
Copyright © 2023. All rights reserved.