Caplin FXIntegrationAPI Documentation - Version 3.51.0-3064-772a4c6

Message Builder Example - SalesOrderBlotterRecord

package com.caplin.examples.fxapi.generated.motif.fx.orders.OrderBlotterTypesDef; 

import java.math.BigInteger;
import java.time.ZoneId;

import com.caplin.generated.motif.fx.orders.OrderBlotterTypesDef;
import com.caplin.generated.motif.fx.orders.OrderDetailsPartsDef;

public class SalesOrderBlotterRecordExample {
    public static void main(String[] args) {
                    		
		OrderBlotterTypesDef.SalesOrderBlotterRecord salesOrderBlotterRecord =
		OrderBlotterTypesDef.SalesOrderBlotterRecord
			.newBuilder()
			.setOrderBlotterRecord(
			OrderBlotterTypesDef.OrderBlotterRecord
				.newBuilder()
				.setCommonFields(
				OrderDetailsPartsDef.CommonFields
					.newBuilder()
					.setAccount("", true)
					.setAccountEditable()
					.setActivationDate("", true)
					.setActivationDateEditable()
					.setActivationDateTime("", true)
					.setActivationDateTimeEditable()
					.setActivationDisplayTimeZone(ZoneId.systemDefault(), true)
					.setActivationDisplayTimeZoneEditable()
					.setActivationLocation("", true)
					.setActivationLocationEditable()
					.setActivationTime("", true)
					.setActivationTimeEditable()
					.setActivationType("", true)
					.setActivationTypeEditable()
					.setActivationUTCOffset("", true)
					.setActivationUTCOffsetEditable()
					.setAlertType("", true)
					.setAlertTypeEditable()
					.setAllowedActions("")
					.setCurrencyPair("", true)
					.setCurrencyPairEditable()
					.setExpirationDate("", true)
					.setExpirationDateEditable()
					.setExpirationDateTime("", true)
					.setExpirationDateTimeEditable()
					.setExpirationDisplayTimeZone("", true)
					.setExpirationDisplayTimeZoneEditable()
					.setExpirationLocation("", true)
					.setExpirationLocationEditable()
					.setExpirationTime("", true)
					.setExpirationTimeEditable()
					.setExpirationType("", true)
					.setExpirationTypeEditable()
					.setExpirationUTCOffset("", true)
					.setExpirationUTCOffsetEditable()
					.setOrderCount("")
					.setOrderID("")
					.setStrategyType("", true)
					.setStrategyTypeEditable()
					.setTOBOUser("client@customer.co.za")
					.setTemperature("2")
					.setTraderUsername("sales_trader@novobank.co.za")
					.build())
				.setLegFields(
				OrderDetailsPartsDef.LegFields
					.newBuilder()
					.setAmount("", true)
					.setAmountEditable()
					.setBenchmarkType("", true)
					.setBenchmarkTypeEditable()
					.setBuySell("", true)
					.setBuySellEditable()
					.setChildLegId("", true)
					.setChildLegIdEditable()
					.setChildRelationship("", true)
					.setChildRelationshipEditable()
					.setDealtCurrency("", true)
					.setDealtCurrencyEditable()
					.setEditable("")
					.setExecutionType("", true)
					.setExecutionTypeEditable()
					.setFillRate("", true)
					.setFillRateEditable()
					.setFilled(BigDecimal.valueOf(0.0))
					.setLastActionBy("")
					.setLastActionDateTime(Instant.now())
					.setLimitPrice("", true)
					.setLimitPriceEditable()
					.setLoopLegId(0, true)
					.setLoopLegIdEditable()
					.setMonitorSide("", true)
					.setMonitorSideEditable()
					.setOrderFixingDate(LocalDate.now())
					.setOrderID("")
					.setOrderSettlementDate("", true)
					.setOrderSettlementDateEditable()
					.setOrderStatus("")
					.setOrderTenor("", true)
					.setOrderTenorEditable()
					.setPartnerLegId(0, true)
					.setPartnerLegIdEditable()
					.setPartnerRelationship("", true)
					.setPartnerRelationshipEditable()
					.setRemaining("")
					.setRemarks("", true)
					.setRemarksEditable()
					.setStatus("AWAITING-PRICE")
					.setSubmittedDateTime(Instant.now())
					.build())
				.build())
			.setSalesLegFields(
			OrderDetailsPartsDef.SalesLegFields
				.newBuilder()
				.setDiscretion(BigDecimal.valueOf(0.0), true)
				.setDiscretionEditable()
				.setMargin(BigDecimal.valueOf(0.0), true)
				.setMarginEditable()
				.setTraderRemarks("", true)
				.setTraderRemarksEditable()
				.build())
			.build();
            
    }
}