Clean an investment objective
curl --request POST \
--url https://api.noonum.ai/v1/clean-objective \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>",
"exclusions": [
"<string>"
],
"regions": [
"<string>"
],
"marketCap": "<string>",
"availableFilters": {
"regions": [
"<string>"
],
"marketCaps": [
{
"key": "<string>",
"label": "<string>"
}
]
}
}
'import requests
url = "https://api.noonum.ai/v1/clean-objective"
payload = {
"objective": "<string>",
"exclusions": ["<string>"],
"regions": ["<string>"],
"marketCap": "<string>",
"availableFilters": {
"regions": ["<string>"],
"marketCaps": [
{
"key": "<string>",
"label": "<string>"
}
]
}
}
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({
objective: '<string>',
exclusions: ['<string>'],
regions: ['<string>'],
marketCap: '<string>',
availableFilters: {regions: ['<string>'], marketCaps: [{key: '<string>', label: '<string>'}]}
})
};
fetch('https://api.noonum.ai/v1/clean-objective', 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/clean-objective"
payload := strings.NewReader("{\n \"objective\": \"<string>\",\n \"exclusions\": [\n \"<string>\"\n ],\n \"regions\": [\n \"<string>\"\n ],\n \"marketCap\": \"<string>\",\n \"availableFilters\": {\n \"regions\": [\n \"<string>\"\n ],\n \"marketCaps\": [\n {\n \"key\": \"<string>\",\n \"label\": \"<string>\"\n }\n ]\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))
}{
"cleanedObjective": "<string>",
"regions": [
"<string>"
],
"marketCap": "<string>",
"exclusions": [
"<string>"
],
"unsupportedFilters": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Helper
Clean an investment objective
Surgically extracts quantitative filter conditions (region, market cap, exclusion phrases) from a natural-language investment objective. Keeps the original wording unless a filter is woven into the sentence.
POST
/
clean-objective
Clean an investment objective
curl --request POST \
--url https://api.noonum.ai/v1/clean-objective \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>",
"exclusions": [
"<string>"
],
"regions": [
"<string>"
],
"marketCap": "<string>",
"availableFilters": {
"regions": [
"<string>"
],
"marketCaps": [
{
"key": "<string>",
"label": "<string>"
}
]
}
}
'import requests
url = "https://api.noonum.ai/v1/clean-objective"
payload = {
"objective": "<string>",
"exclusions": ["<string>"],
"regions": ["<string>"],
"marketCap": "<string>",
"availableFilters": {
"regions": ["<string>"],
"marketCaps": [
{
"key": "<string>",
"label": "<string>"
}
]
}
}
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({
objective: '<string>',
exclusions: ['<string>'],
regions: ['<string>'],
marketCap: '<string>',
availableFilters: {regions: ['<string>'], marketCaps: [{key: '<string>', label: '<string>'}]}
})
};
fetch('https://api.noonum.ai/v1/clean-objective', 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/clean-objective"
payload := strings.NewReader("{\n \"objective\": \"<string>\",\n \"exclusions\": [\n \"<string>\"\n ],\n \"regions\": [\n \"<string>\"\n ],\n \"marketCap\": \"<string>\",\n \"availableFilters\": {\n \"regions\": [\n \"<string>\"\n ],\n \"marketCaps\": [\n {\n \"key\": \"<string>\",\n \"label\": \"<string>\"\n }\n ]\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))
}{
"cleanedObjective": "<string>",
"regions": [
"<string>"
],
"marketCap": "<string>",
"exclusions": [
"<string>"
],
"unsupportedFilters": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json
Response
The cleaned objective and extracted filters.