Check portfolio heat
curl --request GET \
--url https://api.example.com/api/graph/v1/risk/heatimport requests
url = "https://api.example.com/api/graph/v1/risk/heat"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/graph/v1/risk/heat', 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://api.example.com/api/graph/v1/risk/heat",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/graph/v1/risk/heat"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/graph/v1/risk/heat")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/risk/heat")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_heat_pct": 123,
"max_heat_pct": 123,
"heat_status": "<string>",
"can_add_position": true,
"remaining_heat_pct": 123,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Risk Management
Check portfolio heat
Check current portfolio heat against tier limits.
## Heat Calculation
Portfolio heat = sum(position_heat) / account_value
Where position_heat = position_value × risk_percentage
## Heat Status Levels
- **green**: Below 50% of max heat - can add positions freely
- **yellow**: 50-75% of max heat - caution on new positions
- **orange**: 75-90% of max heat - reduce position sizes
- **red**: 90-100% of max heat - no new positions
## Response
- **current_heat_pct**: Current portfolio heat percentage
- **max_heat_pct**: Maximum allowed for account tier
- **heat_status**: Color-coded status (green/yellow/orange/red)
- **can_add_position**: Whether new positions are allowed
- **remaining_heat_pct**: Available heat capacity
## Performance Target
<100ms response time.
GET
/
api
/
graph
/
v1
/
risk
/
heat
Check portfolio heat
curl --request GET \
--url https://api.example.com/api/graph/v1/risk/heatimport requests
url = "https://api.example.com/api/graph/v1/risk/heat"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/graph/v1/risk/heat', 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://api.example.com/api/graph/v1/risk/heat",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/graph/v1/risk/heat"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/graph/v1/risk/heat")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/risk/heat")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_heat_pct": 123,
"max_heat_pct": 123,
"heat_status": "<string>",
"can_add_position": true,
"remaining_heat_pct": 123,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Account UUID
Current account value in USD
Account tier (1-3). If not provided, calculated from account value.
Required range:
1 <= x <= 3