public class TradeLeg extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TradeLeg.PositionAmountDatas
Encapsulates the list of PositionAmountDatas
|
static class |
TradeLeg.UnderlyingInstruments
Encapsulates the list of UnderlyingInstruments
|
Constructor and Description |
---|
TradeLeg()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Leg |
getLeg() |
ScaledDecimal |
getLegAlternatePrice() |
ScaledDecimal |
getLegDifferentialPrice() |
DifferentialPriceType |
getLegDifferentialPriceType() |
ScaledDecimal |
getLegLastPrice()
Gets the trade price assigned to the leg.
|
int |
getLegNumber()
Gets the number identifying the leg within a strategy or spread.
|
ScaledDecimal |
getLegOrderQuantity()
Gets the ordered quantity of this leg.
|
OriginalTimeUnit |
getLegOriginalTimeUnit()
Gets the Time Unit for this leg of the original trade, e.g.
|
ArrayList<PositionAmountData> |
getLegPositionAmountData() |
PriceSubType |
getLegPriceSubType() |
PriceType |
getLegPriceType() |
ScaledDecimal |
getLegQuantity()
Gets the actual quantity of the leg as it participated in the spread trade.
|
String |
getLegReferenceID()
Gets a unique trade ID generated by the clearing system for this leg.
|
String |
getLegReportID()
Gets the report ID for the leg as generated by the clearing system.
|
ScaledDecimal |
getLegTradingQuantity()
Gets leg quantity per Original Time Unit as submitted on a CME ClearPort API trade report when a product
has multiple time units, or, Product Variable Quantity Unit (VQU) is not 'S' (standard), and the product subtype
(Monthly, daily, weekly) is not equal to the time unit entered for the trade.
|
TradeLeg.UnderlyingInstruments |
getUnderlyingInstruments() |
void |
setLegAlternatePrice(ScaledDecimal value) |
void |
setLegDifferentialPrice(ScaledDecimal value) |
void |
setLegDifferentialPriceType(DifferentialPriceType value) |
void |
setLegLastPrice(ScaledDecimal value)
Sets the trade price assigned to the leg.
|
void |
setLegNumber(int value)
Sets the number identifying the leg within a strategy or spread.
|
void |
setLegOrderQuantity(ScaledDecimal value)
Sets the ordered quantity of this leg.
|
void |
setLegOriginalTimeUnit(OriginalTimeUnit value)
Gets the Time Unit for this leg of the original trade, e.g.
|
void |
setLegPriceSubType(PriceSubType value) |
void |
setLegPriceType(PriceType value) |
void |
setLegQuantity(ScaledDecimal value)
Sets the actual quantity of the leg as it participated in the spread trade.
|
void |
setLegReferenceID(String value)
Sets a unique trade ID generated by the clearing system for this leg.
|
void |
setLegReportID(String value)
Sets the report ID for the leg as generated by the clearing system.
|
void |
setLegTradingQuantity(ScaledDecimal value)
Gets leg quantity per Original Time Unit as submitted on a CME ClearPort API trade report when a product
has multiple time units, or, Product Variable Quantity Unit (VQU) is not 'S' (standard), and the product subtype
(Monthly, daily, weekly) is not equal to the time unit entered for the trade.
|
public final ScaledDecimal getLegOrderQuantity()
public final void setLegOrderQuantity(ScaledDecimal value)
value
- the ordered quantity to setpublic final ScaledDecimal getLegQuantity()
public final void setLegQuantity(ScaledDecimal value)
value
- the actual leg quantity to setpublic final String getLegReportID()
public final void setLegReportID(String value)
value
- the leg report ID to setpublic final int getLegNumber()
public final void setLegNumber(int value)
value
- the leg number to setpublic final String getLegReferenceID()
public final void setLegReferenceID(String value)
value
- the leg reference ID to setpublic final ScaledDecimal getLegLastPrice()
public final void setLegLastPrice(ScaledDecimal value)
value
- the leg last price to setpublic final PriceType getLegPriceType()
public final void setLegPriceType(PriceType value)
value
- the type of the price associated with the trade. Will not be present for IRS/FRA trades.public final PriceSubType getLegPriceSubType()
public final void setLegPriceSubType(PriceSubType value)
value
- further qualification of the Price Type, and determines whether
this is an initial (preliminary) or final price.public final OriginalTimeUnit getLegOriginalTimeUnit()
public final void setLegOriginalTimeUnit(OriginalTimeUnit value)
value
- Leg Original Time Unitpublic final ScaledDecimal getLegDifferentialPrice()
public final void setLegDifferentialPrice(ScaledDecimal value)
value
- the differential price for spreads, or a TAS or TAM differential price.public final DifferentialPriceType getLegDifferentialPriceType()
public final void setLegDifferentialPriceType(DifferentialPriceType value)
value
- the type of differential price represented in the Differential Price attribute.public final ScaledDecimal getLegTradingQuantity()
public final void setLegTradingQuantity(ScaledDecimal value)
value
- Leg Trading Quantitypublic final ScaledDecimal getLegAlternatePrice()
public final void setLegAlternatePrice(ScaledDecimal value)
value
- leg alternate price.public final Leg getLeg()
public final TradeLeg.UnderlyingInstruments getUnderlyingInstruments()
public final ArrayList<PositionAmountData> getLegPositionAmountData()
Copyright © 2014–2025 Onix Solutions. All rights reserved.