curl --request POST \
--url https://api.noonum.ai/v2/strategies/{strategyId}/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"as_of_date": "2023-12-25",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"force": false,
"create_factsheet": false,
"priority": 5
}
'import requests
url = "https://api.noonum.ai/v2/strategies/{strategyId}/submit"
payload = {
"as_of_date": "2023-12-25",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"force": False,
"create_factsheet": False,
"priority": 5
}
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({
as_of_date: '2023-12-25',
version_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
force: false,
create_factsheet: false,
priority: 5
})
};
fetch('https://api.noonum.ai/v2/strategies/{strategyId}/submit', 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/{strategyId}/submit"
payload := strings.NewReader("{\n \"as_of_date\": \"2023-12-25\",\n \"version_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"force\": false,\n \"create_factsheet\": false,\n \"priority\": 5\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))
}{
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"strategy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"objective": "<string>",
"exclusions": [
"<string>"
],
"waivers": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"is_active": true,
"status": 123,
"completed": true,
"has_factsheet": true,
"factsheet_status": "ready",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"as_of_date": "2023-12-25",
"latest_run_date": "2023-12-25",
"runs_count": 123
}{
"error": "<string>"
}{
"error": "<string>",
"available": 123,
"requested": 123
}Submit a strategy version for a run
Queues a run for a version of the strategy. The run is live when as_of_date is omitted or set to today in UTC, and historical when set to a past date. Live and historical runs draw from the same credit allowance of your plan’s current period and are rejected once it is exhausted; a run that fails is not charged. Only the owner can submit a strategy.
curl --request POST \
--url https://api.noonum.ai/v2/strategies/{strategyId}/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"as_of_date": "2023-12-25",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"force": false,
"create_factsheet": false,
"priority": 5
}
'import requests
url = "https://api.noonum.ai/v2/strategies/{strategyId}/submit"
payload = {
"as_of_date": "2023-12-25",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"force": False,
"create_factsheet": False,
"priority": 5
}
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({
as_of_date: '2023-12-25',
version_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
force: false,
create_factsheet: false,
priority: 5
})
};
fetch('https://api.noonum.ai/v2/strategies/{strategyId}/submit', 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/{strategyId}/submit"
payload := strings.NewReader("{\n \"as_of_date\": \"2023-12-25\",\n \"version_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"force\": false,\n \"create_factsheet\": false,\n \"priority\": 5\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))
}{
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"strategy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"objective": "<string>",
"exclusions": [
"<string>"
],
"waivers": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"is_active": true,
"status": 123,
"completed": true,
"has_factsheet": true,
"factsheet_status": "ready",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"as_of_date": "2023-12-25",
"latest_run_date": "2023-12-25",
"runs_count": 123
}{
"error": "<string>"
}{
"error": "<string>",
"available": 123,
"requested": 123
}Authorizations
Path Parameters
Body
Parameters for submitting a strategy run.
Whether to also request a factsheet for the resulting run. With an as_of_date before 2025-01-01, which has no market cap to build a factsheet from, the submit is rejected with a 400. When a completed run already exists and force is not set, the factsheet is requested for that run.
Response
The submission was accepted. Returns the submitted version and its run state. Poll GET /strategies/{strategyId}/versions/{versionId} to track progress.
A saved version of a strategy together with its run state. When no as_of_date is supplied, the response summarizes the version overall and populates latest_run_date and runs_count. When an as_of_date is supplied, the response describes the run on that date, echoes as_of_date, and leaves the summary-only fields null.
Factsheet state of the completed run this payload describes: the run on as_of_date when one was supplied, else the latest completed run. Null when there is no such run. See FactsheetStatus for generating, not_requested and unavailable; ready means the PDF can be downloaded.
ready, generating, not_requested, unavailable