Caplin FXIntegrationAPI Documentation - Version 8.4.0
Message Builder Example - SalesCommonTradeConfirmationFields
package com.caplin.examples.fxapi.generated.motif.mm.tradeconfirmation.TradeConfPartsDef;
import java.math.BigInteger;
import static com.caplin.motif.fx.config.DefaultDisplayFields.addDefaultSalesAllocationDetailsUpdateFields;
import com.caplin.generated.motif.mm.tradeconfirmation.TradeConfPartsDef;
public class SalesCommonTradeConfirmationFieldsExample {
public static void main(String[] args) {
TradeConfPartsDef.SalesCommonTradeConfirmationFields salesCommonTradeConfirmationFields =
TradeConfPartsDef.SalesCommonTradeConfirmationFields
.newBuilder()
.setDisplayFields(addDefaultSalesAllocationDetailsUpdateFields(/* See DefaultDisplayFields javadoc for parameters and available builder methods. */))
.setInterestMargin("")
.setInterestMarginEditable()
.setProfit("1000")
.setProfitCurrency("USD")
.setProfitCurrencyDPS(5)
.setProfitIsHouse(true)
.setProfitRate(BigDecimal.valueOf(1.091790))
.setReasons("")
.setStreamingMode("MANUAL, STREAMING")
.setTradeStatus("AWAITING-PRICE")
.setTraderInterestRate(BigDecimal.valueOf(0.0))
.build();
}
}