Caplin FXIntegrationAPI Documentation - Version 8.5.0

Message Builder Example - CommoditiesTradeBlotterRecord

package com.caplin.examples.fxapi.generated.motif.commodities.blotter.BlotterTypesDef; 

import java.math.BigInteger;

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

public class CommoditiesTradeBlotterRecordExample {
    public static void main(String[] args) {
                    		
		BlotterTypesDef.CommoditiesTradeBlotterRecord commoditiesTradeBlotterRecord =
		BlotterTypesDef.CommoditiesTradeBlotterRecord
			.newBuilder()
			.setCommoditiesTradeConfirmation(
			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(true)
					.setCommodity("")
					.setCurrency("USD")
					.setDealBreakdown("")
					.setEffectiveDate("")
					.setEntityDescription("Customer 1")
					.setLEI("")
					.setMarket("12.45")
					.setNextActionDeadline(Instant.now())
					.setNextActionDeadlineDisplayTimezone("America/New_York")
					.setPaymentDate("")
					.setPricingDate("")
					.setReferencePrice(BigDecimal.valueOf(0.0))
					.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())
			.build();
            
    }
}