Caplin FXIntegrationAPI Documentation - Version 8.4.0

Message Builder Example - CommoditiesTradeConfirmation

package com.caplin.examples.fxapi.generated.motif.commodities.tradeconfirmation.TradeConfTypesDef; 

import java.math.BigInteger;

import com.caplin.generated.motif.commodities.tradeconfirmation.TradeConfPartsDef;
import com.caplin.generated.motif.commodities.tradeconfirmation.TradeConfTypesDef;

public class CommoditiesTradeConfirmationExample {
    public static void main(String[] args) {
                    		
		TradeConfTypesDef.CommoditiesTradeConfirmation commoditiesTradeConfirmation =
		TradeConfTypesDef.CommoditiesTradeConfirmation
			.newBuilder()
			.setAsian3WayCollarFields(
			TradeConfPartsDef.Asian3WayCollarTradeConfirmationFields
				.newBuilder()
				.setPremiumPaymentDate("")
				.build())
			.setAsianCapFloorFields(
			TradeConfPartsDef.AsianCapFloorTradeConfirmationFields
				.newBuilder()
				.setBuyer("")
				.setDirection("")
				.setPremium("")
				.setPremiumPayer("")
				.setPremiumPaymentDate("")
				.setSeller("")
				.setStrike("")
				.setTotalQuantity(BigDecimal.valueOf(0.0))
				.build())
			.setAsianCapFloorSpreadFields(
			TradeConfPartsDef.AsianCapFloorSpreadTradeConfirmationFields
				.newBuilder()
				.setBuyer("")
				.setPremiumPayer("")
				.setPremiumPaymentDate("")
				.setSeller("")
				.setStrike("")
				.build())
			.setAsianCollarFields(
			TradeConfPartsDef.AsianCollarTradeConfirmationFields
				.newBuilder()
				.setPremiumPaymentDate("")
				.build())
			.setBasisSwapFields(
			TradeConfPartsDef.BasisSwapTradeConfirmationFields
				.newBuilder()
				.setDirection("")
				.setFixedPrice("")
				.setFixedPricePayer("")
				.setFloatingPricePayer("")
				.setTotalQuantity("")
				.build())
			.setCommonFields(
			TradeConfPartsDef.CommonTradeConfirmationFields
				.newBuilder()
				.setCanAffirm("")
				.setCommodity("")
				.setCurrency("USD")
				.setDealBreakdown("")
				.setEffectiveDate("")
				.setEntityDescription("Customer 1")
				.setLEI("")
				.setMarket("12.45")
				.setNextActionDeadline(Instant.now())
				.setNextActionDeadlineDisplayTimezone("America/New_York")
				.setPaymentDate("")
				.setPricingDate("")
				.setReferencePrice("")
				.setSettlementStatus("")
				.setTOBOUser("client@customer.co.za")
				.setTerminationDate("")
				.setTotalPremium("")
				.setTradeDate("20160314")
				.setTradeID("00001561")
				.setTradingType("")
				.setUPI("")
				.setUnit("")
				.build())
			.setEuro3WayCollarFields(
			TradeConfPartsDef.Euro3WayCollarTradeConfirmationFields
				.newBuilder()
				.setPremiumPaymentDate("")
				.build())
			.setEuroCallSpreadFields(
			TradeConfPartsDef.EuroCallSpreadTradeConfirmationFields
				.newBuilder()
				.setBuyer("")
				.setPremiumPaymentDate("")
				.setSeller("")
				.setStrike("")
				.build())
			.setEuroCollarFields(
			TradeConfPartsDef.EuroCollarTradeConfirmationFields
				.newBuilder()
				.setPremiumPaymentDate("")
				.build())
			.setEuroPutCallFields(
			TradeConfPartsDef.EuroPutCallTradeConfirmationFields
				.newBuilder()
				.setBuyer("")
				.setDirection("")
				.setPremium("")
				.setPremiumPayer("")
				.setPremiumPaymentDate("")
				.setSeller("")
				.setStrike("")
				.setTotalQuantity(BigDecimal.valueOf(0.0))
				.build())
			.setFixedSwapFields(
			TradeConfPartsDef.FixedSwapTradeConfirmationFields
				.newBuilder()
				.setDirection("")
				.setFixedPrice("")
				.setFixedPricePayer("")
				.setFloatingPricePayer("")
				.setTotalQuantity("")
				.build())
			.setSpreadPutFields(
			TradeConfPartsDef.SpreadPutTradeConfirmationFields
				.newBuilder()
				.setDirection("")
				.setPremium(BigDecimal.valueOf(0.0))
				.setPremiumPayer("")
				.setPremiumPaymentDate("")
				.setStrike(BigDecimal.valueOf(0.0))
				.setTotalQuantity(BigDecimal.valueOf(0.0))
				.build())
			.build();
            
    }
}