Caplin FXIntegrationAPI Documentation - Version 6.2.0

Message Builder Example - SalesCommonTradeConfirmationFields

package com.caplin.examples.fxapi.generated.motif.fx.tradeconfirmation.TradeConfPartsDef; 

import java.math.BigInteger;

import com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef;

public class SalesCommonTradeConfirmationFieldsExample {
    public static void main(String[] args) {
                    		
		TradeConfPartsDef.SalesCommonTradeConfirmationFields salesCommonTradeConfirmationFields =
		TradeConfPartsDef.SalesCommonTradeConfirmationFields
			.newBuilder()
			.setCompetition("")
			.setIsAdvised(true)
			.setProfit("1000")
			.setProfitCurrency("USD")
			.setProfitCurrencyDPS(5)
			.setProfitIsHouse("")
			.setProfitRate("1.091790")
			.setReasons("")
			.setSource("WMR 8am London Time")
			.setSpotMargin("", true)
			.setSpotMarginEditable()
			.setStreamingMode("MANUAL, STREAMING")
			.setTraderRemarks("")
			.setTraderSpotAskRate(BigDecimal.valueOf(1.08575))
			.setTraderSpotBidRate(BigDecimal.valueOf(1.08575))
			.setTraderSpotRate("1.09174")
			.build();
            
    }
}