Request historical data generation for a strategy
curl --request POST \
--url https://api.noonum.ai/v1/strategies/{strategyId}/historical-data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dates": [
"2024-01-31"
],
"priority": 5
}
'import requests
url = "https://api.noonum.ai/v1/strategies/{strategyId}/historical-data"
payload = {
"dates": ["2024-01-31"],
"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({dates: ['2024-01-31'], priority: 5})
};
fetch('https://api.noonum.ai/v1/strategies/{strategyId}/historical-data', 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/{strategyId}/historical-data"
payload := strings.NewReader("{\n \"dates\": [\n \"2024-01-31\"\n ],\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))
}{
"success": true,
"data": [
"2024-01-31"
]
}UserStrategies
Request historical data generation for a strategy
POST
/
strategies
/
{strategyId}
/
historical-data
Request historical data generation for a strategy
curl --request POST \
--url https://api.noonum.ai/v1/strategies/{strategyId}/historical-data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dates": [
"2024-01-31"
],
"priority": 5
}
'import requests
url = "https://api.noonum.ai/v1/strategies/{strategyId}/historical-data"
payload = {
"dates": ["2024-01-31"],
"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({dates: ['2024-01-31'], priority: 5})
};
fetch('https://api.noonum.ai/v1/strategies/{strategyId}/historical-data', 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/{strategyId}/historical-data"
payload := strings.NewReader("{\n \"dates\": [\n \"2024-01-31\"\n ],\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))
}{
"success": true,
"data": [
"2024-01-31"
]
}Authorizations
Enter 'Bearer' followed by a space and then your JWT or API Key.
Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
or Bearer YOUR_API_KEY_HERE
Path Parameters
UUID of the user strategy
Body
application/json
Was this page helpful?