Affluenza REST API

<back to all web services

GetSensitivityReportRequest

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

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

HTTP + CSV

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

POST /csv/reply/GetSensitivityReportRequest HTTP/1.1 
Host: www.plusrated.com 
Content-Type: text/csv
Content-Length: length

Portfolios,PortfolioId,DtCalc,DisplayCurrency,Scenaries,SensitivityType,Simulation,AppKey,Token
[String],00000000000000000000000000000000,0001-01-01,String,[0],0,False,0,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Status,Response,ErrorMessage
Success,"{date:0001-01-01,displayCurrencyTicker:{ticker:String,description:String},basePortfolioName:String,scenaries:[0],portfolios:[{id:00000000000000000000000000000000,parentId:00000000000000000000000000000000,name:String,markToMarket:[{scenary:0,value:0}],deep:0,portfolios:[{id:00000000000000000000000000000000,parentId:00000000000000000000000000000000,name:String,markToMarket:[{scenary:0,value:0}],deep:0,portfolios:[{id:00000000000000000000000000000000,parentId:00000000000000000000000000000000,name:String,markToMarket:[{scenary:0,value:0}],deep:0}]}]}],bonds:[{id:00000000000000000000000000000000,portfolioId:00000000000000000000000000000000,contractCategory:{ticker:String,type:String,description:String},contractId:String,counterParty:String,notional: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,contractFixing:{ticker:String,description:String},settlementCurrency:{ticker:String,description:String},settlementCurrencyFixing:{ticker:String,description:String},settlementQuotationInitialValue:0,duration:0,internalReturnRate:0,markToMarket:[{scenary:0,value:0}],feeUpFront:0,feeUpFrontType:String,iof:0,iofType:String,observation:String,warrantyType:String,warrantyInformation:String,externalKey:String,termConvention:String,interestConvention:String,discountCurve:String,hedgeAccounting:{ticker:String,description:String,active:False}}],derivatives:[{id:00000000000000000000000000000000,portfolioId:00000000000000000000000000000000,contractCategory:{ticker:String,type:String,description:String},contractCurrency:{ticker:String,description:String},contractId:String,counterParty:String,notional:0,instrument:{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:[{scenary:0,value:0}],observation:String,warrantyType:String,warrantyInformation:String,externalKey:String,dataSource:String,contractFixing:{ticker:String,description:String},forwardList:[{scenary:0,value:0}]}],sensitivityType:Indexer}","{message:String,statusCode:0}"