Caplin FXIntegrationAPI Documentation - Version 6.2.0
Message Builder Example - SalesCommonFields
package com.caplin.examples.fxapi.generated.motif.fx.rates.QuotePartsDef;
import java.math.BigInteger;
import com.caplin.generated.motif.fx.rates.QuotePartsDef;
public class SalesCommonFieldsExample {
public static void main(String[] args) {
QuotePartsDef.SalesCommonFields salesCommonFields =
QuotePartsDef.SalesCommonFields
.newBuilder()
.setDefaultSpotAskMargin("0.00054")
.setDefaultSpotBidMargin(BigDecimal.valueOf(0.00054))
.setProfitAskRate(BigDecimal.valueOf(1.090098))
.setProfitBidRate("1.091790")
.setProfitCurrency("USD")
.setProfitCurrencyDPS("5")
.setProfitIsHouse(true)
.setTraderSpotAskRate("1.08575")
.setTraderSpotBidRate("1.08575")
.build();
}
}