Caplin FXIntegrationAPI Documentation - Version 8.5.0

Message Builder Example - SwapQuoteUnavailable

package com.caplin.examples.fxapi.generated.motif.fx.rates.QuoteUnavailableTypesDef; 

import com.caplin.generated.motif.fx.rates.QuoteUnavailablePartsDef;
import com.caplin.generated.motif.fx.rates.QuoteUnavailableTypesDef;

public class SwapQuoteUnavailableExample {
    public static void main(String[] args) {
                    		
		QuoteUnavailableTypesDef.SwapQuoteUnavailable swapQuoteUnavailable =
		QuoteUnavailableTypesDef.SwapQuoteUnavailable
			.newBuilder()
			.setCommonFields(
			QuoteUnavailablePartsDef.QuoteUnavailableCommonFields
				.newBuilder()
				.setCurrencyPair("")
				.setDigitsBeforePips(2)
				.setNumberOfPips(2)
				.setProfitAskRate("1.090098")
				.setProfitBidRate("1.091790")
				.setProfitCurrency("USD")
				.setProfitCurrencyDPS("5")
				.setProfitIsHouse(true)
				.setSpotRateDPS(5)
				.build())
			.setFarLegFields(
			QuoteUnavailablePartsDef.QuoteUnavailableLegFields
				.newBuilder()
				.setAllInRateDPS("5")
				.setTenor("1M")
				.build())
			.setNearLegFields(
			QuoteUnavailablePartsDef.QuoteUnavailableLegFields
				.newBuilder()
				.build())
			.build();
            
    }
}