Package com.longbridge.trade
Class SubmitMultiLegOrderLeg
- java.lang.Object
-
- com.longbridge.trade.SubmitMultiLegOrderLeg
-
public class SubmitMultiLegOrderLeg extends Object
A leg of a multi-leg combination order to submit
-
-
Constructor Summary
Constructors Constructor Description SubmitMultiLegOrderLeg(String symbol, BigDecimal ratioQuantity)Constructs a leg of a multi-leg combination order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetRatioQuantity()Returns the leg ratio quantity.StringgetSymbol()Returns the option symbol.
-
-
-
Constructor Detail
-
SubmitMultiLegOrderLeg
public SubmitMultiLegOrderLeg(String symbol, BigDecimal ratioQuantity)
Constructs a leg of a multi-leg combination order.- Parameters:
symbol- option symbol, in `ticker.region` format (e.g.QQQ260731C764000.US)ratioQuantity- leg ratio quantity; must be a positive number. The direction of each leg is implied by the strategy together with the order side, not by the sign of this value; a negative or zero ratio is rejected by the server with602001
-
-
Method Detail
-
getSymbol
public String getSymbol()
Returns the option symbol.- Returns:
- option symbol
-
getRatioQuantity
public BigDecimal getRatioQuantity()
Returns the leg ratio quantity.- Returns:
- leg ratio quantity
-
-