Upsert Intraday Profile
curl --request PUT \
--url https://api.example.com/api/graph/v1/user/intraday-profile/ \
--header 'Content-Type: application/json' \
--data '
{
"account_tier": "moderate",
"default_mode": "monitor",
"max_daily_loss": 500,
"max_portfolio_positions": 3,
"per_trade_risk": 250,
"symbols_config": [
{
"symbol": "<string>",
"mode": "monitor"
}
],
"session_prefs": {
"auto_start": false,
"auto_close": true
},
"notifications": {
"browser_push": false,
"audio": true,
"toast": true
},
"enabled_signal_types": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/graph/v1/user/intraday-profile/"
payload = {
"account_tier": "moderate",
"default_mode": "monitor",
"max_daily_loss": 500,
"max_portfolio_positions": 3,
"per_trade_risk": 250,
"symbols_config": [
{
"symbol": "<string>",
"mode": "monitor"
}
],
"session_prefs": {
"auto_start": False,
"auto_close": True
},
"notifications": {
"browser_push": False,
"audio": True,
"toast": True
},
"enabled_signal_types": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account_tier: 'moderate',
default_mode: 'monitor',
max_daily_loss: 500,
max_portfolio_positions: 3,
per_trade_risk: 250,
symbols_config: [{symbol: '<string>', mode: 'monitor'}],
session_prefs: {auto_start: false, auto_close: true},
notifications: {browser_push: false, audio: true, toast: true},
enabled_signal_types: ['<string>']
})
};
fetch('https://api.example.com/api/graph/v1/user/intraday-profile/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/graph/v1/user/intraday-profile/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'account_tier' => 'moderate',
'default_mode' => 'monitor',
'max_daily_loss' => 500,
'max_portfolio_positions' => 3,
'per_trade_risk' => 250,
'symbols_config' => [
[
'symbol' => '<string>',
'mode' => 'monitor'
]
],
'session_prefs' => [
'auto_start' => false,
'auto_close' => true
],
'notifications' => [
'browser_push' => false,
'audio' => true,
'toast' => true
],
'enabled_signal_types' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/graph/v1/user/intraday-profile/"
payload := strings.NewReader("{\n \"account_tier\": \"moderate\",\n \"default_mode\": \"monitor\",\n \"max_daily_loss\": 500,\n \"max_portfolio_positions\": 3,\n \"per_trade_risk\": 250,\n \"symbols_config\": [\n {\n \"symbol\": \"<string>\",\n \"mode\": \"monitor\"\n }\n ],\n \"session_prefs\": {\n \"auto_start\": false,\n \"auto_close\": true\n },\n \"notifications\": {\n \"browser_push\": false,\n \"audio\": true,\n \"toast\": true\n },\n \"enabled_signal_types\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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))
}HttpResponse<String> response = Unirest.put("https://api.example.com/api/graph/v1/user/intraday-profile/")
.header("Content-Type", "application/json")
.body("{\n \"account_tier\": \"moderate\",\n \"default_mode\": \"monitor\",\n \"max_daily_loss\": 500,\n \"max_portfolio_positions\": 3,\n \"per_trade_risk\": 250,\n \"symbols_config\": [\n {\n \"symbol\": \"<string>\",\n \"mode\": \"monitor\"\n }\n ],\n \"session_prefs\": {\n \"auto_start\": false,\n \"auto_close\": true\n },\n \"notifications\": {\n \"browser_push\": false,\n \"audio\": true,\n \"toast\": true\n },\n \"enabled_signal_types\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/user/intraday-profile/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_tier\": \"moderate\",\n \"default_mode\": \"monitor\",\n \"max_daily_loss\": 500,\n \"max_portfolio_positions\": 3,\n \"per_trade_risk\": 250,\n \"symbols_config\": [\n {\n \"symbol\": \"<string>\",\n \"mode\": \"monitor\"\n }\n ],\n \"session_prefs\": {\n \"auto_start\": false,\n \"auto_close\": true\n },\n \"notifications\": {\n \"browser_push\": false,\n \"audio\": true,\n \"toast\": true\n },\n \"enabled_signal_types\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_tier": "<string>",
"default_mode": "<string>",
"max_daily_loss": 123,
"max_portfolio_positions": 123,
"per_trade_risk": 123,
"symbols_config": [
{}
],
"session_prefs": {},
"notifications": {},
"enabled_signal_types": [
"<string>"
],
"supervised_trade_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Intraday Profile
Upsert Intraday Profile
Create or replace intraday profile (wizard completion).
PUT
/
api
/
graph
/
v1
/
user
/
intraday-profile
/
Upsert Intraday Profile
curl --request PUT \
--url https://api.example.com/api/graph/v1/user/intraday-profile/ \
--header 'Content-Type: application/json' \
--data '
{
"account_tier": "moderate",
"default_mode": "monitor",
"max_daily_loss": 500,
"max_portfolio_positions": 3,
"per_trade_risk": 250,
"symbols_config": [
{
"symbol": "<string>",
"mode": "monitor"
}
],
"session_prefs": {
"auto_start": false,
"auto_close": true
},
"notifications": {
"browser_push": false,
"audio": true,
"toast": true
},
"enabled_signal_types": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/graph/v1/user/intraday-profile/"
payload = {
"account_tier": "moderate",
"default_mode": "monitor",
"max_daily_loss": 500,
"max_portfolio_positions": 3,
"per_trade_risk": 250,
"symbols_config": [
{
"symbol": "<string>",
"mode": "monitor"
}
],
"session_prefs": {
"auto_start": False,
"auto_close": True
},
"notifications": {
"browser_push": False,
"audio": True,
"toast": True
},
"enabled_signal_types": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account_tier: 'moderate',
default_mode: 'monitor',
max_daily_loss: 500,
max_portfolio_positions: 3,
per_trade_risk: 250,
symbols_config: [{symbol: '<string>', mode: 'monitor'}],
session_prefs: {auto_start: false, auto_close: true},
notifications: {browser_push: false, audio: true, toast: true},
enabled_signal_types: ['<string>']
})
};
fetch('https://api.example.com/api/graph/v1/user/intraday-profile/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/graph/v1/user/intraday-profile/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'account_tier' => 'moderate',
'default_mode' => 'monitor',
'max_daily_loss' => 500,
'max_portfolio_positions' => 3,
'per_trade_risk' => 250,
'symbols_config' => [
[
'symbol' => '<string>',
'mode' => 'monitor'
]
],
'session_prefs' => [
'auto_start' => false,
'auto_close' => true
],
'notifications' => [
'browser_push' => false,
'audio' => true,
'toast' => true
],
'enabled_signal_types' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/graph/v1/user/intraday-profile/"
payload := strings.NewReader("{\n \"account_tier\": \"moderate\",\n \"default_mode\": \"monitor\",\n \"max_daily_loss\": 500,\n \"max_portfolio_positions\": 3,\n \"per_trade_risk\": 250,\n \"symbols_config\": [\n {\n \"symbol\": \"<string>\",\n \"mode\": \"monitor\"\n }\n ],\n \"session_prefs\": {\n \"auto_start\": false,\n \"auto_close\": true\n },\n \"notifications\": {\n \"browser_push\": false,\n \"audio\": true,\n \"toast\": true\n },\n \"enabled_signal_types\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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))
}HttpResponse<String> response = Unirest.put("https://api.example.com/api/graph/v1/user/intraday-profile/")
.header("Content-Type", "application/json")
.body("{\n \"account_tier\": \"moderate\",\n \"default_mode\": \"monitor\",\n \"max_daily_loss\": 500,\n \"max_portfolio_positions\": 3,\n \"per_trade_risk\": 250,\n \"symbols_config\": [\n {\n \"symbol\": \"<string>\",\n \"mode\": \"monitor\"\n }\n ],\n \"session_prefs\": {\n \"auto_start\": false,\n \"auto_close\": true\n },\n \"notifications\": {\n \"browser_push\": false,\n \"audio\": true,\n \"toast\": true\n },\n \"enabled_signal_types\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/user/intraday-profile/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_tier\": \"moderate\",\n \"default_mode\": \"monitor\",\n \"max_daily_loss\": 500,\n \"max_portfolio_positions\": 3,\n \"per_trade_risk\": 250,\n \"symbols_config\": [\n {\n \"symbol\": \"<string>\",\n \"mode\": \"monitor\"\n }\n ],\n \"session_prefs\": {\n \"auto_start\": false,\n \"auto_close\": true\n },\n \"notifications\": {\n \"browser_push\": false,\n \"audio\": true,\n \"toast\": true\n },\n \"enabled_signal_types\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_tier": "<string>",
"default_mode": "<string>",
"max_daily_loss": 123,
"max_portfolio_positions": 123,
"per_trade_risk": 123,
"symbols_config": [
{}
],
"session_prefs": {},
"notifications": {},
"enabled_signal_types": [
"<string>"
],
"supervised_trade_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Create or replace intraday profile (wizard completion).
Pattern:
^(conservative|moderate|aggressive)$Pattern:
^(monitor|supervised|autonomous)$Required range:
x >= 100Required range:
1 <= x <= 10Required range:
x >= 50Minimum array length:
1Show child attributes
Show child attributes
Session preferences.
Show child attributes
Show child attributes
Notification preferences.
Show child attributes
Show child attributes
Response
Successful Response
Full intraday profile response.