Affluenza REST API

<back to all web services

NewOperationPostRequest

The following routes are available for this service:
POST, OPTIONS/operationsv2

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/NewOperationPostRequest HTTP/1.1 
Host: 107.22.237.214 
Content-Type: text/jsv
Content-Length: length

{
	operation: 
	{
		id: 00000000000000000000000000000000,
		portfolioId: 00000000000000000000000000000000,
		category: String,
		instrument: String,
		notional: 
		{
			base: 0,
			type: String,
			quantity: 0
		},
		position: String,
		taxes: 
		{
			feeUpFront: 
			{
				type: String,
				value: 0
			},
			unfunded: 
			{
				type: String,
				value: 0
			},
			feeApplicationType: String,
			iofApplicationType: String,
			feeDeferredType: String,
			iofDeferredType: String
		},
		duties: 
		{
			ioftvm: False,
			ir: False
		},
		indexer: 
		{
			ticker: String,
			indexPercentage: 0,
			indexerStringPercentage: String,
			paymentDate: 0001-01-01,
			currency: String,
			quotation: 
			{
				position: String,
				pricing: String,
				initialValue: 0
			},
			fixing: 
			{
				ticker: String,
				startDate: 0001-01-01,
				endDate: 0001-01-01,
				otherDate: 0001-01-01
			},
			indexType: String,
			proRata: String,
			anniversaryType: String
		},
		settlement: 
		{
			currency: String,
			deltaExchangeCurrency: String,
			quotation: 
			{
				position: String,
				pricing: String,
				initialValue: 0
			},
			fixing: 
			{
				ticker: String,
				startDate: 0001-01-01,
				endDate: 0001-01-01,
				otherDate: 0001-01-01
			}
		},
		cashFlow: 
		{
			amortizationRelativeTo: String,
			interest: 
			{
				rate: 0,
				termConvention: String,
				convention: String
			},
			generationRules: 
			{
				rule: String,
				dateAdjustment: String,
				hasReset: False,
				amortization: 
				{
					thresholdDate: 0001-01-01,
					periodUnit: String,
					periodLength: 0
				},
				interest: 
				{
					thresholdDate: 0001-01-01,
					periodUnit: String,
					periodLength: 0
				}
			},
			generatedCashFlow: 
			[
				{
					date: 0001-01-01,
					interest: 0,
					amortization: 0,
					amortizationPercentage: 0
				}
			]
		},
		externalKeys: 
		{
			erp: String,
			contract: String,
			isin: String
		},
		agents: 
		{
			custodian: String,
			fiduciary: String,
			issuer: String
		},
		counterParty: 
		{
			type: String,
			description: String
		},
		warranty: 
		{
			type: String,
			description: String
		},
		hedgeAccounting: String,
		dataSource: String,
		observation: String,
		acquisitionDate: 0001-01-01,
		maturityDate: 0001-01-01,
		paymentType: String,
		interestFineRate: 0,
		interestFineValue: 0,
		interestLateRate: 0,
		bonus: 0,
		contractWarrantyValue: 0,
		amortizationDates: 
		[
			String
		],
		amortizationPercentages: 
		[
			0
		],
		strAmortizationPercentages: 
		[
			String
		],
		fairValue: 0,
		simulation: False,
		unitPrice: 0,
		brokerageFee: 0,
		emolument: 0,
		premium: 0,
		strSettlementType: 
		[
			String
		]
	},
	isTemporary: False,
	appKey: 0,
	token: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	operationId: 00000000000000000000000000000000,
	status: Success,
	response: {},
	errorMessage: 
	{
		message: String,
		statusCode: 0
	}
}