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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/NewOperationPostRequest HTTP/1.1 
Host: 107.22.237.214 
Content-Type: application/json
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-01T00:00:00.0000000","currency":"String","quotation":{"position":"String","pricing":"String","initialValue":0},"fixing":{"ticker":"String","startDate":"0001-01-01T00:00:00.0000000","endDate":"0001-01-01T00:00:00.0000000","otherDate":"0001-01-01T00:00:00.0000000"},"indexType":"String","proRata":"String","anniversaryType":"String"},"settlement":{"currency":"String","deltaExchangeCurrency":"String","quotation":{"position":"String","pricing":"String","initialValue":0},"fixing":{"ticker":"String","startDate":"0001-01-01T00:00:00.0000000","endDate":"0001-01-01T00:00:00.0000000","otherDate":"0001-01-01T00:00:00.0000000"}},"cashFlow":{"amortizationRelativeTo":"String","interest":{"rate":0,"termConvention":"String","convention":"String"},"generationRules":{"rule":"String","dateAdjustment":"String","hasReset":false,"amortization":{"thresholdDate":"0001-01-01T00:00:00.0000000","periodUnit":"String","periodLength":0},"interest":{"thresholdDate":"0001-01-01T00:00:00.0000000","periodUnit":"String","periodLength":0}},"generatedCashFlow":[{"date":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","maturityDate":"0001-01-01T00:00:00.0000000","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: application/json
Content-Length: length

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