public abstract class AbstractSimpleOrderSendParametersBuilder<T extends AbstractSimpleOrderSendParametersBuilder<T>> extends AbstractSingleOrderSendParametersBuilder<AbstractSimpleOrderSendParametersBuilder<T>>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doNotIncrease |
protected double |
limitPrice |
protected java.lang.String |
stopLossClientId |
protected int |
stopLossOffset |
protected int |
stopLossTrailingStep |
protected double |
stopPrice |
protected java.lang.String |
takeProfitClientId |
protected int |
takeProfitOffset |
protected int |
trailingStep |
| Constructor and Description |
|---|
AbstractSimpleOrderSendParametersBuilder(java.lang.String alias,
boolean isBuy,
int size,
OrderDuration duration,
java.lang.String clientId,
double limitPrice,
double stopPrice,
int takeProfitOffset,
int stopLossOffset,
int stopLossTrailingStep,
int trailingStep,
boolean doNotIncrease) |
| Modifier and Type | Method and Description |
|---|---|
SimpleOrderSendParameters |
build() |
double |
getLimitPrice() |
double |
getSizeMultiplier()
Deprecated.
|
java.lang.String |
getStopLossClientId() |
int |
getStopLossOffset() |
int |
getStopLossTrailingStep() |
double |
getStopPrice() |
java.lang.String |
getTakeProfitClientId() |
int |
getTakeProfitOffset() |
int |
getTrailingStep() |
boolean |
isDoNotIncrease() |
T |
setDoNotIncrease(boolean doNotIncrease) |
T |
setLimitPrice(double limitPrice) |
T |
setSizeMultiplier(double sizeMultiplier)
Deprecated.
|
T |
setStopLossClientId(java.lang.String stopLossClientId) |
T |
setStopLossOffset(int stopLossOffset) |
T |
setStopLossTrailingStep(int stopLossTrailingStep) |
T |
setStopPrice(double stopPrice) |
T |
setTakeProfitClientId(java.lang.String takeProfitClientId) |
T |
setTakeProfitOffset(int takeProfitOffset) |
T |
setTrailingStep(int trailingStep) |
java.lang.String |
toString() |
getAlias, getClientId, getDuration, getSize, isBuy, setAlias, setBuy, setClientId, setDuration, setSizeprotected double limitPrice
protected double stopPrice
protected int takeProfitOffset
protected int stopLossOffset
protected int stopLossTrailingStep
protected java.lang.String takeProfitClientId
protected java.lang.String stopLossClientId
protected int trailingStep
protected boolean doNotIncrease
public AbstractSimpleOrderSendParametersBuilder(java.lang.String alias,
boolean isBuy,
int size,
OrderDuration duration,
java.lang.String clientId,
double limitPrice,
double stopPrice,
int takeProfitOffset,
int stopLossOffset,
int stopLossTrailingStep,
int trailingStep,
boolean doNotIncrease)
public SimpleOrderSendParameters build()
build in class AbstractSingleOrderSendParametersBuilder<AbstractSimpleOrderSendParametersBuilder<T extends AbstractSimpleOrderSendParametersBuilder<T>>>public java.lang.String toString()
toString in class AbstractSingleOrderSendParametersBuilder<AbstractSimpleOrderSendParametersBuilder<T extends AbstractSimpleOrderSendParametersBuilder<T>>>public double getLimitPrice()
public T setLimitPrice(double limitPrice)
public double getStopPrice()
public T setStopPrice(double stopPrice)
public int getTakeProfitOffset()
public T setTakeProfitOffset(int takeProfitOffset)
public int getStopLossOffset()
public T setStopLossOffset(int stopLossOffset)
public int getStopLossTrailingStep()
public T setStopLossTrailingStep(int stopLossTrailingStep)
public java.lang.String getTakeProfitClientId()
public T setTakeProfitClientId(java.lang.String takeProfitClientId)
public java.lang.String getStopLossClientId()
public T setStopLossClientId(java.lang.String stopLossClientId)
public int getTrailingStep()
public T setTrailingStep(int trailingStep)
public boolean isDoNotIncrease()
public T setDoNotIncrease(boolean doNotIncrease)
@Deprecated public double getSizeMultiplier()
@Deprecated public T setSizeMultiplier(double sizeMultiplier)