Package com.longbridge.trade
Class MultiLegOrderLeg
- java.lang.Object
-
- com.longbridge.trade.MultiLegOrderLeg
-
public class MultiLegOrderLeg extends Object
A leg of a multi-leg combination order
-
-
Constructor Summary
Constructors Constructor Description MultiLegOrderLeg()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContractDirectiongetContractDirection()Returns the contract type.LocalDategetExpireDate()Returns the option expiry date.MultiLegPositiongetPosition()Returns the position direction.BigDecimalgetRatioQuantity()Returns the leg ratio quantity.OrderSidegetSide()Returns the order side.BigDecimalgetStrikePrice()Returns the strike price.StringgetSymbol()Returns the option symbol, in `ticker.region` format.StringtoString()
-
-
-
Method Detail
-
getSymbol
public String getSymbol()
Returns the option symbol, in `ticker.region` format.- Returns:
- option symbol
-
getSide
public OrderSide getSide()
Returns the order side.- Returns:
- order side
-
getPosition
public MultiLegPosition getPosition()
Returns the position direction.- Returns:
- position direction
-
getRatioQuantity
public BigDecimal getRatioQuantity()
Returns the leg ratio quantity.- Returns:
- leg ratio quantity
-
getStrikePrice
public BigDecimal getStrikePrice()
Returns the strike price.- Returns:
- strike price
-
getExpireDate
public LocalDate getExpireDate()
Returns the option expiry date.- Returns:
- option expiry date
-
getContractDirection
public ContractDirection getContractDirection()
Returns the contract type.- Returns:
- contract type
-
-