Measure portfolio exposure across strategies
curl --request POST \
--url https://api.noonum.ai/v2/strategies/exposures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companiesWeight": {},
"strategyIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"returnDateRange": "1-year"
}
'import requests
url = "https://api.noonum.ai/v2/strategies/exposures"
payload = {
"companiesWeight": {},
"strategyIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"returnDateRange": "1-year"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companiesWeight: {},
strategyIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
returnDateRange: '1-year'
})
};
fetch('https://api.noonum.ai/v2/strategies/exposures', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.noonum.ai/v2/strategies/exposures"
payload := strings.NewReader("{\n \"companiesWeight\": {},\n \"strategyIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"returnDateRange\": \"1-year\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"overlap": 123,
"exposure": 123,
"returns": 123
}
]UserStrategies
Measure portfolio exposure across strategies
Measures how the supplied portfolio overlaps with each strategy visible to the caller. For every owned or public non-archived strategy, the response reports the portfolio’s overlap, exposure, and returns against that strategy’s latest completed run, sorted by exposure from highest to lowest.
POST
/
strategies
/
exposures
Measure portfolio exposure across strategies
curl --request POST \
--url https://api.noonum.ai/v2/strategies/exposures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companiesWeight": {},
"strategyIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"returnDateRange": "1-year"
}
'import requests
url = "https://api.noonum.ai/v2/strategies/exposures"
payload = {
"companiesWeight": {},
"strategyIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"returnDateRange": "1-year"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companiesWeight: {},
strategyIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
returnDateRange: '1-year'
})
};
fetch('https://api.noonum.ai/v2/strategies/exposures', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.noonum.ai/v2/strategies/exposures"
payload := strings.NewReader("{\n \"companiesWeight\": {},\n \"strategyIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"returnDateRange\": \"1-year\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"overlap": 123,
"exposure": 123,
"returns": 123
}
]Authorizations
Body
application/json
Response
One exposure row per strategy, sorted by exposure from highest to lowest.