GET
/
var
/
get_job
/
{job_id}
/
{data_type}
/
{data_format}
curl --request GET \
  --url https://5uftseufe1.execute-api.us-east-2.amazonaws.com/prod/var/get_job/{job_id}/{data_type}/{data_format} \
  --header 'x-api-key: <api-key>'
[
  "Ticker, 90%_VaR, 95%_VaR, 99%_VaR, 90%_CVaR, 95%_CVaR, 99%_CVaR, Market Value, Quantity",
  "Portfolio, -9.3, -11.3, -14.8, -13.5, -16.5, -18.2, 35000,,",
  "AAPL, -5.2, -6.3, -8.1, -7.5, -9.0, -11.2, 150000, 1000",
  "GOOGL, -4.1, -5.0, -6.7, -6.0, -7.5, -9.0, 200000, 500"
]

Authorizations

x-api-key
string
header
required

Server authentication header of the form x-api-key: <api-key>, where <api-key> is your auth token

Path Parameters

job_id
integer
required

ID of the job to retrieve

data_type
enum<string>
required

Whether to retrieve the portfolio-level, marginal-level, or distribution results data

Available options:
marginal,
portfolio,
histogram
data_format
enum<string>
required

File format to retrieve the results in

Available options:
fpml,
csv,
json,
xml,
yaml

Response

200
text/csv
Successful response with the job results in CSV format

The response is of type file.