Class DefaultTableFields
java.lang.Object
com.caplin.motif.commodities.trading.dealbreakdown.DefaultTableFields
Static builder methods to build standard Tables
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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) Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN 3_WAY_COLLARstatic Table
addCallCapFloorSpreadDealBreakdownRow
(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium) 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 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) Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN COLLARstatic Table
addPutCallCapFloorDealBreakdownRow
(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium) Adds a deal breakdown row to your table configuration for a commodities trade that is EURO PUT/CALL or ASIAN CAP/FLOORstatic Table
addPutSpreadDealBreakdownRow
(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium) Adds a deal breakdown row to your table configuration for a commodities trade that is a PUT_SPREADstatic Table
addSwapDealBreakdownRow
(Table table, String tradeId, LocalDate effectiveDate, LocalDate terminationDate, FormattedAmount notionalQuantity, FormattedAmount fixedPricePerUnit, LocalDate paymentDate) Adds a deal breakdown row to your table configuration for a commodities trade that is a FIXED_SWAP or BASIS_SWAPstatic TableCell
createAmountCell
(FormattedAmount amount) Creates an amount cellstatic TableCell
Creates an amount cell with no unitsstatic TableCell
createDateCell
(LocalDate date) Creates a date cellstatic Table
createDealBreakdownTable
(String tradingType, String currency, String unit) Creates a deal breakdown table for a commodities trade of the given trading typestatic TableCell
createTextCell
(String text) Create a text cell
-
Method Details
-
addSwapDealBreakdownRow
public static Table addSwapDealBreakdownRow(Table table, String tradeId, LocalDate effectiveDate, LocalDate terminationDate, FormattedAmount notionalQuantity, FormattedAmount fixedPricePerUnit, LocalDate paymentDate) 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 trade
-
addPutCallCapFloorDealBreakdownRow
public static Table addPutCallCapFloorDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium) 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 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) 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 trade
-
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) 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 trade
-
addCallCapFloorSpreadDealBreakdownRow
public static Table addCallCapFloorSpreadDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium) 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 trade
-
addPutSpreadDealBreakdownRow
public static Table addPutSpreadDealBreakdownRow(Table table, String tradeId, LocalDate paymentDate, LocalDate effectiveDate, LocalDate tradeDate, LocalDate expirationDate, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium) 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 trade
-
createTextCell
Create a text cell- Parameters:
text
- The text to show- Returns:
-
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)
-