Affluenza REST API

<back to all web services

GetUploadReportRequest

The following routes are available for this service:
POST, GET/reports/upload

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/GetUploadReportRequest HTTP/1.1 
Host: 107.22.237.214 
Content-Type: text/jsv
Content-Length: length

{
	appKey: 0,
	token: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	status: Success,
	response: 
	{
		date: 0001-01-01,
		displayCurrencyTicker: 
		{
			ticker: String,
			description: String
		},
		basePortfolioName: String,
		portfolios: 
		[
			{
				id: 00000000000000000000000000000000,
				parentId: 00000000000000000000000000000000,
				name: String,
				notional: 0,
				averageMaturity: 0,
				markToMarket: 0,
				accrual: 0,
				internalReturnRate: 0,
				duration: 0,
				outstandingBalance: 0,
				deep: 0
			}
		],
		bonds: 
		[
			{
				id: 00000000000000000000000000000000,
				portfolioId: 00000000000000000000000000000000,
				contractCategory: 
				{
					ticker: String,
					type: String,
					description: String
				},
				contractId: String,
				counterParty: String,
				notional: 0,
				baseValue: 0,
				underlying: 
				{
					ticker: String,
					description: String
				},
				instrument: 
				{
					ticker: String,
					description: String
				},
				cashFlowIndexPercentage: 0,
				cashFlowInterestRate: 0,
				startDate: 0001-01-01,
				maturityDate: 0001-01-01,
				numberOfPayments: 0,
				settlementCurrency: 
				{
					ticker: String,
					description: String
				},
				settlementCurrencyFixing: 
				{
					ticker: String,
					description: String
				},
				accrualValue: 0,
				duration: 0,
				internalReturnRate: 0,
				markToMarket: 0,
				feeUpFront: 0,
				feeUpFrontType: String,
				iof: 0,
				iofType: String,
				observation: String,
				fairValue: 0,
				warrantyType: String,
				warrantyInformation: String,
				externalKey: String,
				hedgeAccounting: 
				{
					ticker: String,
					description: String,
					active: False
				},
				termConvention: String,
				interestConvention: String,
				discountCurve: String,
				var: 0,
				contractFixing: 
				{
					ticker: String,
					description: String
				},
				settlementQuotationInitialValue: 0,
				accruals: 
				[
					{
						number: 0,
						date: 0001-01-01,
						fixingStartDate: 0001-01-01,
						interestValue: 0,
						principal: 0,
						monetaryCorrection: 0,
						currencyExchangeCorrection: 0,
						currencyExchangeCorrectionNotional: 0,
						currencyExchangeCorrectionInterest: 0,
						currencyExchangeCorrectionMonetaryCorrection: 0,
						currencyExchangeCorrectionFeeupfront: 0,
						currencyExchangeCorrectionAmortization: 0,
						feeUpFront: 0,
						markToMarket: 0,
						paymentDate: 0001-01-01,
						interestLate: 0,
						interestLateValue: 0,
						interestFine: 0,
						status: String,
						adjustment: 0,
						brokerageFee: 0,
						emolument: 0,
						premium: 0,
						bonus: 0
					}
				],
				forecasts: 
				[
					{
						number: 0,
						date: 0001-01-01,
						fixingStartDate: 0001-01-01,
						interestValue: 0,
						principal: 0,
						monetaryCorrection: 0,
						currencyExchangeCorrection: 0,
						currencyExchangeCorrectionNotional: 0,
						currencyExchangeCorrectionInterest: 0,
						currencyExchangeCorrectionMonetaryCorrection: 0,
						currencyExchangeCorrectionFeeupfront: 0,
						currencyExchangeCorrectionAmortization: 0,
						feeUpFront: 0,
						markToMarket: 0,
						paymentDate: 0001-01-01,
						interestLate: 0,
						interestLateValue: 0,
						interestFine: 0,
						status: String,
						adjustment: 0,
						brokerageFee: 0,
						emolument: 0,
						premium: 0,
						bonus: 0
					}
				],
				cashflows: 
				[
					{
						number: 0,
						date: 0001-01-01,
						fixingStartDate: 0001-01-01,
						interestValue: 0,
						principal: 0,
						monetaryCorrection: 0,
						currencyExchangeCorrection: 0,
						currencyExchangeCorrectionNotional: 0,
						currencyExchangeCorrectionInterest: 0,
						currencyExchangeCorrectionMonetaryCorrection: 0,
						currencyExchangeCorrectionFeeupfront: 0,
						currencyExchangeCorrectionAmortization: 0,
						feeUpFront: 0,
						markToMarket: 0,
						paymentDate: 0001-01-01,
						interestLate: 0,
						interestLateValue: 0,
						interestFine: 0,
						status: String,
						adjustment: 0,
						brokerageFee: 0,
						emolument: 0,
						premium: 0,
						bonus: 0
					}
				],
				brokerageFee: 0,
				emolument: 0,
				premium: 0,
				contractWarrantyValue: 0
			}
		],
		derivatives: 
		[
			{
				id: 00000000000000000000000000000000,
				portfolioId: 00000000000000000000000000000000,
				contractCategory: 
				{
					ticker: String,
					type: String,
					description: String
				},
				contractId: String,
				counterParty: String,
				notional: 0,
				instrument: 
				{
					ticker: String,
					description: String
				},
				contractCurrency: 
				{
					ticker: String,
					description: String
				},
				underlying: 
				{
					ticker: String,
					description: String
				},
				settlementCurrency: 
				{
					ticker: String,
					description: String
				},
				forwardValue: 0,
				position: 
				{
					type: String,
					description: String
				},
				forwardMarketValue: 0,
				settlementExchangeCurrency: 0,
				hedgeAccounting: 
				{
					ticker: String,
					description: String,
					active: False
				},
				riskFreeRate: 0,
				startDate: 0001-01-01,
				maturityDate: 0001-01-01,
				markToMarket: 0,
				observation: String,
				warrantyType: String,
				warrantyInformation: String,
				externalKey: String,
				dataSource: String,
				var: 0,
				fairValue: 0,
				contractFixing: 
				{
					ticker: String,
					description: String
				},
				brokerageFee: 0,
				emolument: 0,
				premium: 0,
				baseValue: 0,
				volatility: 0,
				futureValue: 0,
				futureExposition: 0
			}
		]
	},
	errorMessage: 
	{
		message: String,
		statusCode: 0
	}
}