Get exposures across multiple strategies
curl --request POST \
--url https://api.noonum.ai/v1/strategies/strategies-exposures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companiesWeight": {
"83d88f60-f581-4176-bb5c-e0b463d1d442": 0.5,
"0c8b9628-6fce-4d95-a787-5b532172a6ea": 0.3
},
"strategyIds": [
"83d88f60-f581-4176-bb5c-e0b463d1d442",
"b544d95b-43a6-4a50-a326-90552b05c551"
]
}
'import requests
url = "https://api.noonum.ai/v1/strategies/strategies-exposures"
payload = {
"companiesWeight": {
"83d88f60-f581-4176-bb5c-e0b463d1d442": 0.5,
"0c8b9628-6fce-4d95-a787-5b532172a6ea": 0.3
},
"strategyIds": ["83d88f60-f581-4176-bb5c-e0b463d1d442", "b544d95b-43a6-4a50-a326-90552b05c551"]
}
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: {
'83d88f60-f581-4176-bb5c-e0b463d1d442': 0.5,
'0c8b9628-6fce-4d95-a787-5b532172a6ea': 0.3
},
strategyIds: ['83d88f60-f581-4176-bb5c-e0b463d1d442', 'b544d95b-43a6-4a50-a326-90552b05c551']
})
};
fetch('https://api.noonum.ai/v1/strategies/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/v1/strategies/strategies-exposures"
payload := strings.NewReader("{\n \"companiesWeight\": {\n \"83d88f60-f581-4176-bb5c-e0b463d1d442\": 0.5,\n \"0c8b9628-6fce-4d95-a787-5b532172a6ea\": 0.3\n },\n \"strategyIds\": [\n \"83d88f60-f581-4176-bb5c-e0b463d1d442\",\n \"b544d95b-43a6-4a50-a326-90552b05c551\"\n ]\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": "83d88f60-f581-4176-bb5c-e0b463d1d442",
"name": "Electric Vehicles",
"overlap": 0,
"exposure": 0,
"returns": 0
}
]UserStrategies
Get exposures across multiple strategies
POST
/
strategies
/
strategies-exposures
Get exposures across multiple strategies
curl --request POST \
--url https://api.noonum.ai/v1/strategies/strategies-exposures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companiesWeight": {
"83d88f60-f581-4176-bb5c-e0b463d1d442": 0.5,
"0c8b9628-6fce-4d95-a787-5b532172a6ea": 0.3
},
"strategyIds": [
"83d88f60-f581-4176-bb5c-e0b463d1d442",
"b544d95b-43a6-4a50-a326-90552b05c551"
]
}
'import requests
url = "https://api.noonum.ai/v1/strategies/strategies-exposures"
payload = {
"companiesWeight": {
"83d88f60-f581-4176-bb5c-e0b463d1d442": 0.5,
"0c8b9628-6fce-4d95-a787-5b532172a6ea": 0.3
},
"strategyIds": ["83d88f60-f581-4176-bb5c-e0b463d1d442", "b544d95b-43a6-4a50-a326-90552b05c551"]
}
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: {
'83d88f60-f581-4176-bb5c-e0b463d1d442': 0.5,
'0c8b9628-6fce-4d95-a787-5b532172a6ea': 0.3
},
strategyIds: ['83d88f60-f581-4176-bb5c-e0b463d1d442', 'b544d95b-43a6-4a50-a326-90552b05c551']
})
};
fetch('https://api.noonum.ai/v1/strategies/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/v1/strategies/strategies-exposures"
payload := strings.NewReader("{\n \"companiesWeight\": {\n \"83d88f60-f581-4176-bb5c-e0b463d1d442\": 0.5,\n \"0c8b9628-6fce-4d95-a787-5b532172a6ea\": 0.3\n },\n \"strategyIds\": [\n \"83d88f60-f581-4176-bb5c-e0b463d1d442\",\n \"b544d95b-43a6-4a50-a326-90552b05c551\"\n ]\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": "83d88f60-f581-4176-bb5c-e0b463d1d442",
"name": "Electric Vehicles",
"overlap": 0,
"exposure": 0,
"returns": 0
}
]Authorizations
Enter 'Bearer' followed by a space and then your JWT or API Key.
Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
or Bearer YOUR_API_KEY_HERE
Body
application/json
Map of company ID to weight. Each weight is a number between 0 and 1, inclusive.
Show child attributes
Show child attributes
Example:
{
"83d88f60-f581-4176-bb5c-e0b463d1d442": 0.5,
"0c8b9628-6fce-4d95-a787-5b532172a6ea": 0.3
}
Example:
[
"83d88f60-f581-4176-bb5c-e0b463d1d442",
"b544d95b-43a6-4a50-a326-90552b05c551"
]
Response
Companies that appear in every requested strategy.
Identifier of the strategy.
Example:
"83d88f60-f581-4176-bb5c-e0b463d1d442"
Name of the strategy.
Example:
"Electric Vehicles"
Fraction of the portfolio's holdings that also appear in the strategy.
Example:
0
Portfolio weight allocated to companies that appear in the strategy.
Example:
0
The portfolio's return over the requested window, attributed to the strategy.
Example:
0
Was this page helpful?