Class DefaultTableFields
java.lang.Object
com.caplin.motif.commodities.trading.dealbreakdown.DefaultTableFields
Static builder methods to build standard Tables
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tableadd3WayCollarDealBreakdownRow(Table table, String tradeId1, String tradeId2, String tradeId3, FormattedAmount notionalQuantity, FormattedAmount strike1, FormattedAmount strike2, FormattedAmount strike3, FormattedAmount premium1, FormattedAmount premium2, FormattedAmount premium3, LocalDate effectiveDate, LocalDate terminationDate, LocalDate expirationDate, LocalDate paymentDate, String currency, String unit, String tradingType, String uti1, String uti2, String uti3) Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN 3_WAY_COLLARstatic TableaddCallCapFloorSpreadDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, String uti) Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO_CALL_SPREAD or as ASIAN CAP/FLOOR SPREADstatic TableaddCollarDealBreakdownRow(Table table, String callOrCapTradeId, String putOrFloorTradeId, FormattedAmount notionalQuantity, FormattedAmount callOrCapStrike, FormattedAmount putOrFloorStrike, FormattedAmount callOrCapPremium, FormattedAmount putOrFloorPremium, LocalDate effectiveDate, LocalDate terminationDate, LocalDate expirationDate, LocalDate paymentDate, String currency, String unit, String tradingType, String callOrCapUti, String putOrFloorUti) Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN COLLARstatic TableaddPutCallCapFloorDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, String uti) Adds a deal breakdown row to your table configuration for a commodities trade that is EURO PUT/CALL or ASIAN CAP/FLOORstatic TableaddPutSpreadDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, String uti) Adds a deal breakdown row to your table configuration for a commodities trade that is a PUT_SPREADstatic TableaddSwapDealBreakdownRow(Table table, String tradeId, LocalDate effectiveDate, LocalDate terminationDate, FormattedAmount notionalQuantity, FormattedAmount fixedPricePerUnit, LocalDate paymentDate, String uti) Adds a deal breakdown row to your table configuration for a commodities trade that is a FIXED_SWAP or BASIS_SWAPstatic TableCellcreateAmountCell(FormattedAmount amount) Creates an amount cellstatic TableCellCreates an amount cell with no unitsstatic TableCellcreateDateCell(LocalDate date) Creates a date cellstatic TablecreateDealBreakdownTable(String tradingType, String currency, String unit) Creates a deal breakdown table for a commodities trade of the given trading typestatic TableCellcreateTextCell(String text) Create a text cellstatic TableCellcreateTooltipTextCell(String text) Create a text cell with tooltip
-
Method Details
-
addSwapDealBreakdownRow
public static Table addSwapDealBreakdownRow(Table table, String tradeId, LocalDate effectiveDate, LocalDate terminationDate, FormattedAmount notionalQuantity, FormattedAmount fixedPricePerUnit, LocalDate paymentDate, String uti) Adds a deal breakdown row to your table configuration for a commodities trade that is a FIXED_SWAP or BASIS_SWAP- Parameters:
table- The Table to add the row totradeId- The id of the tradeeffectiveDate- The effective date of the tradeterminationDate- The termination date of the tradenotionalQuantity- The quantity of the tradefixedPricePerUnit- The fixed price of the tradepaymentDate- The payment date of the tradeuti- The Unique Transaction Identifier (UTI) of the trade
-
addPutCallCapFloorDealBreakdownRow
public static Table addPutCallCapFloorDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, String uti) Adds a deal breakdown row to your table configuration for a commodities trade that is EURO PUT/CALL or ASIAN CAP/FLOOR- Parameters:
table- The Table to add the row totradeId- The id of the tradepaymentDate- The payment date of the tradeeffectiveDate- The effective date of the tradetradeDate- The trade date of the tradeexpirationDate- The expirationDate date of the tradenotionalQuantity- The quantity of the tradestrike- The strike of the tradepremium- The premium of the tradeuti- The Unique Transaction Identifier (UTI) of the trade
-
addCollarDealBreakdownRow
public static Table addCollarDealBreakdownRow(Table table, String callOrCapTradeId, String putOrFloorTradeId, FormattedAmount notionalQuantity, FormattedAmount callOrCapStrike, FormattedAmount putOrFloorStrike, FormattedAmount callOrCapPremium, FormattedAmount putOrFloorPremium, LocalDate effectiveDate, LocalDate terminationDate, LocalDate expirationDate, LocalDate paymentDate, String currency, String unit, String tradingType, String callOrCapUti, String putOrFloorUti) Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN COLLAR- Parameters:
table- The Table to add the row tocallOrCapTradeId- The id of the call or cap optionputOrFloorTradeId- The id of the put or floor optionnotionalQuantity- The quantity of the tradecallOrCapStrike- The strike of the call or cap optionputOrFloorStrike- The strike of the put or floor optioncallOrCapPremium- The premium of the call or cap optionputOrFloorPremium- The premium of the put or floor optioneffectiveDate- The effective date of the tradeterminationDate- The termination date of the tradepaymentDate- The payment date of the tradecallOrCapUti- The Unique Transaction Identifier (UTI) of the call or cap optionputOrFloorUti- The Unique Transaction Identifier (UTI) of the put or floor option
-
add3WayCollarDealBreakdownRow
public static Table add3WayCollarDealBreakdownRow(Table table, String tradeId1, String tradeId2, String tradeId3, FormattedAmount notionalQuantity, FormattedAmount strike1, FormattedAmount strike2, FormattedAmount strike3, FormattedAmount premium1, FormattedAmount premium2, FormattedAmount premium3, LocalDate effectiveDate, LocalDate terminationDate, LocalDate expirationDate, LocalDate paymentDate, String currency, String unit, String tradingType, String uti1, String uti2, String uti3) Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN 3_WAY_COLLAR- Parameters:
table- The Table to add the row totradeId1- The id of the first optiontradeId2- The id of the second optiontradeId3- The id of the third optionnotionalQuantity- The quantity of the tradestrike1- The strike of the first tradestrike2- The strike of the second tradestrike3- The strike of the third tradepremium1- The premium of the first tradepremium2- The premium of the second tradepremium3- The premium of the third tradeeffectiveDate- The effective date of the tradeterminationDate- The termination date of the tradepaymentDate- The payment date of the tradeuti1- The Unique Transaction Identifier (UTI) of the first optionuti2- The Unique Transaction Identifier (UTI) of the second optionuti3- The Unique Transaction Identifier (UTI) of the third option
-
addCallCapFloorSpreadDealBreakdownRow
public static Table addCallCapFloorSpreadDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, String uti) Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO_CALL_SPREAD or as ASIAN CAP/FLOOR SPREAD- Parameters:
table- The Table to add the row totradeId- The id of the tradepaymentDate- The payment date of the tradeeffectiveDate- The effective date of the tradetradeDate- The trade date of the tradeexpirationDate- The expirationDate date of the tradenotionalQuantity- The quantity of the tradestrike- The strike of the tradepremium- The premium of the tradeuti- The Unique Transaction Identifier (UTI) of the trade
-
addPutSpreadDealBreakdownRow
public static Table addPutSpreadDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, String uti) Adds a deal breakdown row to your table configuration for a commodities trade that is a PUT_SPREAD- Parameters:
table- The Table to add the row totradeId- The id of the tradepaymentDate- The payment date of the tradeeffectiveDate- The effective date of the tradetradeDate- The trade date of the tradeexpirationDate- The expirationDate date of the tradenotionalQuantity- The quantity of the tradestrike- The strike of the tradepremium- The premium of the tradeuti- The Unique Transaction Identifier (UTI) of the trade
-
createTextCell
Create a text cell- Parameters:
text- The text to show
-
createTooltipTextCell
Create a text cell with tooltip- Parameters:
text- The text to show in the tooltip
-
createDateCell
Creates a date cell- Parameters:
date- The date to show
-
createAmountCell
Creates an amount cell- Parameters:
amount- The amount of the new trade
-
createAmountCellNoUnit
Creates an amount cell with no units- Parameters:
amount- The amount of the new trade
-
createDealBreakdownTable
Creates a deal breakdown table for a commodities trade of the given trading type- Parameters:
currency- The currency of the trade (e.g. USD)unit- The unit of the trade (e.g. bbl)
-