cURL
curl --request POST \
--url https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"scenario_description": "<string>",
"portfolio_weights": {},
"as_of_date": "<string>",
"search_for_context": true,
"include_security_details": true,
"aggregate_scenarios": false
}
'import requests
url = "https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis"
payload = {
"scenario_description": "<string>",
"portfolio_weights": {},
"as_of_date": "<string>",
"search_for_context": True,
"include_security_details": True,
"aggregate_scenarios": False
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scenario_description: '<string>',
portfolio_weights: {},
as_of_date: '<string>',
search_for_context: true,
include_security_details: true,
aggregate_scenarios: false
})
};
fetch('https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'scenario_description' => '<string>',
'portfolio_weights' => [
],
'as_of_date' => '<string>',
'search_for_context' => true,
'include_security_details' => true,
'aggregate_scenarios' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis"
payload := strings.NewReader("{\n \"scenario_description\": \"<string>\",\n \"portfolio_weights\": {},\n \"as_of_date\": \"<string>\",\n \"search_for_context\": true,\n \"include_security_details\": true,\n \"aggregate_scenarios\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"scenario_description\": \"<string>\",\n \"portfolio_weights\": {},\n \"as_of_date\": \"<string>\",\n \"search_for_context\": true,\n \"include_security_details\": true,\n \"aggregate_scenarios\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scenario_description\": \"<string>\",\n \"portfolio_weights\": {},\n \"as_of_date\": \"<string>\",\n \"search_for_context\": true,\n \"include_security_details\": true,\n \"aggregate_scenarios\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"scenario_description": "<string>",
"as_of_date": "<string>",
"scenario_tree": [
{}
],
"expected_portfolio_return_pct": 123,
"portfolio_summary": {},
"generated_at": "<string>",
"leaf_scenarios": [
{
"path": [
"<string>"
],
"joint_probability_pct": 123,
"title": "<string>",
"description": "<string>",
"macro_shocks": null,
"portfolio_expected_return_pct": 123,
"portfolio_return_pct": 123,
"contribution_to_expected_return_pct": 123,
"top_movers": [
{
"tilt_id": "<string>",
"weight": 123,
"expected_return_pct": 123,
"contribution_to_portfolio_pct": 123,
"cusip": "<string>",
"ticker": "<string>",
"company_name": "<string>",
"factor_contributions": {}
}
],
"security_details": [
{
"tilt_id": "<string>",
"weight": 123,
"expected_return_pct": 123,
"contribution_to_portfolio_pct": 123,
"cusip": "<string>",
"ticker": "<string>",
"company_name": "<string>",
"factor_contributions": {}
}
]
}
],
"scenario_level_results": [
{
"title": "<string>",
"description": "<string>",
"probability_pct": 123,
"portfolio_return_mean_pct": 123,
"portfolio_return_std_pct": 123,
"macro_shocks": [
{}
],
"sub_scenario_count": 123,
"top_movers": [
{
"tilt_id": "<string>",
"weight": 123,
"expected_return_pct": 123,
"contribution_to_portfolio_pct": 123,
"cusip": "<string>",
"ticker": "<string>",
"company_name": "<string>",
"factor_contributions": {}
}
],
"security_details": [
{
"tilt_id": "<string>",
"weight": 123,
"expected_return_pct": 123,
"contribution_to_portfolio_pct": 123,
"cusip": "<string>",
"ticker": "<string>",
"company_name": "<string>",
"factor_contributions": {}
}
]
}
],
"context_articles": [
"<string>"
],
"context_article_ids": [
"<string>"
],
"warnings": [
"<string>"
],
"cache_hit": true
}Scenario Analysis
Scenario Portfolio Analysis
POST
/
api
/
v1
/
backchannel
/
risk
/
scenario_portfolio_analysis
cURL
curl --request POST \
--url https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"scenario_description": "<string>",
"portfolio_weights": {},
"as_of_date": "<string>",
"search_for_context": true,
"include_security_details": true,
"aggregate_scenarios": false
}
'import requests
url = "https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis"
payload = {
"scenario_description": "<string>",
"portfolio_weights": {},
"as_of_date": "<string>",
"search_for_context": True,
"include_security_details": True,
"aggregate_scenarios": False
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scenario_description: '<string>',
portfolio_weights: {},
as_of_date: '<string>',
search_for_context: true,
include_security_details: true,
aggregate_scenarios: false
})
};
fetch('https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'scenario_description' => '<string>',
'portfolio_weights' => [
],
'as_of_date' => '<string>',
'search_for_context' => true,
'include_security_details' => true,
'aggregate_scenarios' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis"
payload := strings.NewReader("{\n \"scenario_description\": \"<string>\",\n \"portfolio_weights\": {},\n \"as_of_date\": \"<string>\",\n \"search_for_context\": true,\n \"include_security_details\": true,\n \"aggregate_scenarios\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"scenario_description\": \"<string>\",\n \"portfolio_weights\": {},\n \"as_of_date\": \"<string>\",\n \"search_for_context\": true,\n \"include_security_details\": true,\n \"aggregate_scenarios\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tilt.io/api/v1/backchannel/risk/scenario_portfolio_analysis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scenario_description\": \"<string>\",\n \"portfolio_weights\": {},\n \"as_of_date\": \"<string>\",\n \"search_for_context\": true,\n \"include_security_details\": true,\n \"aggregate_scenarios\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"scenario_description": "<string>",
"as_of_date": "<string>",
"scenario_tree": [
{}
],
"expected_portfolio_return_pct": 123,
"portfolio_summary": {},
"generated_at": "<string>",
"leaf_scenarios": [
{
"path": [
"<string>"
],
"joint_probability_pct": 123,
"title": "<string>",
"description": "<string>",
"macro_shocks": null,
"portfolio_expected_return_pct": 123,
"portfolio_return_pct": 123,
"contribution_to_expected_return_pct": 123,
"top_movers": [
{
"tilt_id": "<string>",
"weight": 123,
"expected_return_pct": 123,
"contribution_to_portfolio_pct": 123,
"cusip": "<string>",
"ticker": "<string>",
"company_name": "<string>",
"factor_contributions": {}
}
],
"security_details": [
{
"tilt_id": "<string>",
"weight": 123,
"expected_return_pct": 123,
"contribution_to_portfolio_pct": 123,
"cusip": "<string>",
"ticker": "<string>",
"company_name": "<string>",
"factor_contributions": {}
}
]
}
],
"scenario_level_results": [
{
"title": "<string>",
"description": "<string>",
"probability_pct": 123,
"portfolio_return_mean_pct": 123,
"portfolio_return_std_pct": 123,
"macro_shocks": [
{}
],
"sub_scenario_count": 123,
"top_movers": [
{
"tilt_id": "<string>",
"weight": 123,
"expected_return_pct": 123,
"contribution_to_portfolio_pct": 123,
"cusip": "<string>",
"ticker": "<string>",
"company_name": "<string>",
"factor_contributions": {}
}
],
"security_details": [
{
"tilt_id": "<string>",
"weight": 123,
"expected_return_pct": 123,
"contribution_to_portfolio_pct": 123,
"cusip": "<string>",
"ticker": "<string>",
"company_name": "<string>",
"factor_contributions": {}
}
]
}
],
"context_articles": [
"<string>"
],
"context_article_ids": [
"<string>"
],
"warnings": [
"<string>"
],
"cache_hit": true
}Authorizations
Body
application/json
Portfolio weights keyed by tilt_id or CUSIP. Mixed identifiers are allowed; CUSIPs are resolved to tilt_ids server-side.
Show child attributes
Show child attributes
Pattern:
^\d{4}-\d{2}-\d{2}$Response
200 - application/json
AI-generated scenario tree with portfolio impact analysis
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I