Caplin FXIntegrationAPI Documentation - Version 8.3.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(true)
.setIsAdvised("")
.setProfit(BigDecimal.valueOf(1000))
.setProfitCurrency("USD")
.setProfitCurrencyDPS("5")
.setProfitIsHouse(true)
.setProfitRate(BigDecimal.valueOf(1.091790))
.setReasons("")
.setSource("WMR 8am London Time")
.setSpotMargin(BigDecimal.valueOf(0.0), true)
.setSpotMarginEditable()
.setStreamingMode("MANUAL, STREAMING")
.setTraderRemarks("")
.setTraderSpotAskRate("1.08575")
.setTraderSpotBidRate(BigDecimal.valueOf(1.08575))
.setTraderSpotRate("1.09174")
.build();
}
}