|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lmax.api.internal.order.AbstractOrderSpecification
com.lmax.api.order.LimitOrderSpecification
public final class LimitOrderSpecification
Limit Order Request.
Constructor Summary | |
---|---|
LimitOrderSpecification(long instrumentId,
FixedPointNumber price,
FixedPointNumber quantity,
TimeInForce timeInForce)
Construct a limit order request with no stops. |
|
LimitOrderSpecification(long instrumentId,
FixedPointNumber price,
FixedPointNumber quantity,
TimeInForce timeInForce,
FixedPointNumber stopLossPriceOffset,
FixedPointNumber stopProfitPriceOffset)
Construct a limit order request. |
|
LimitOrderSpecification(long instrumentId,
java.lang.String instructionId,
FixedPointNumber price,
FixedPointNumber quantity,
TimeInForce timeInForce)
Construct a limit order request with no stops. |
|
LimitOrderSpecification(long instrumentId,
java.lang.String instructionId,
FixedPointNumber price,
FixedPointNumber quantity,
TimeInForce timeInForce,
FixedPointNumber stopLossPriceOffset,
FixedPointNumber stopProfitPriceOffset)
Construct a limit order request. |
Method Summary | |
---|---|
protected FixedPointNumber |
getPrice()
|
void |
setPrice(FixedPointNumber price)
Set the price of the limit order specification to the specified value. |
java.lang.String |
toString()
A readable String representation of the LimitOrderSpecification. |
Methods inherited from class com.lmax.api.internal.order.AbstractOrderSpecification |
---|
getUri, setInstructionId, setInstrumentId, setQuantity, setStopLossPriceOffset, setStopProfitPriceOffset, setTimeInForce, writeTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LimitOrderSpecification(long instrumentId, java.lang.String instructionId, FixedPointNumber price, FixedPointNumber quantity, TimeInForce timeInForce, FixedPointNumber stopLossPriceOffset, FixedPointNumber stopProfitPriceOffset)
instrumentId
- The id of the instrument for the order book to place the order onto.instructionId
- The user-defined correlation idprice
- The price order the limit orderquantity
- The quantity to trade. A signed value, where the sign indicates the side of the
market that order is placed. Positive implies a buy order, where as negative is a selltimeInForce
- The time in force policy for the limit order.stopLossPriceOffset
- This is meant to be an OFFSET not a ABSOLUTE price. The system will cap the offset value
to keep it within bounds for the instrument. Use null if you do not want to specify a stop.stopProfitPriceOffset
- This is meant to be an OFFSET not a ABSOLUTE price. The system will cap the offset value
to keep it within bounds for the instrument. Use null if you do not want to specify a stop.public LimitOrderSpecification(long instrumentId, FixedPointNumber price, FixedPointNumber quantity, TimeInForce timeInForce, FixedPointNumber stopLossPriceOffset, FixedPointNumber stopProfitPriceOffset)
instrumentId
- The id of the instrument for the order book to place the order onto.price
- The price order the limit orderquantity
- The quantity to trade. A signed value, where the sign indicates the side of the
market that order is placed. Positive implies a buy order, where as negative is a selltimeInForce
- The time in force policy for the limit order.stopLossPriceOffset
- This is meant to be an OFFSET not a ABSOLUTE price. The system will cap the offset value
to keep it within bounds for the instrument. Use null if you do not want to specify a stop.stopProfitPriceOffset
- This is meant to be an OFFSET not a ABSOLUTE price. The system will cap the offset value
to keep it within bounds for the instrument. Use null if you do not want to specify a stop.public LimitOrderSpecification(long instrumentId, FixedPointNumber price, FixedPointNumber quantity, TimeInForce timeInForce)
instrumentId
- The id of the instrument for the order book to place the order onto.price
- The price order the limit order.quantity
- The quantity to trade. A signed value, where the sign indicates the side of the
market that order is placed. Positive implies a buy order, where as negative is a selltimeInForce
- The time in force policy for the limit order.public LimitOrderSpecification(long instrumentId, java.lang.String instructionId, FixedPointNumber price, FixedPointNumber quantity, TimeInForce timeInForce)
instrumentId
- The id of the instrument for the order book to place the order onto.instructionId
- The user-defined correlation idprice
- The price order the limit order.quantity
- The quantity to trade. A signed value, where the sign indicates the side of the
market that order is placed. Positive implies a buy order, where as negative is a selltimeInForce
- The time in force policy for the limit order.Method Detail |
---|
public void setPrice(FixedPointNumber price)
price
- New price for the order specification.protected FixedPointNumber getPrice()
getPrice
in class com.lmax.api.internal.order.AbstractOrderSpecification
public java.lang.String toString()
toString
in class com.lmax.api.internal.order.AbstractOrderSpecification
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |