curl --request POST \
--url https://api.example.com/api/graph/v1/thesis \
--header 'Content-Type: application/json' \
--data '
{
"narrative": "<string>",
"sectors": [
"<string>"
],
"catalysts": [
"<string>"
],
"invalidation_conditions": [
"<string>"
],
"catalyst_ids": [
"<string>"
],
"risk_ids": [
"<string>"
],
"confidence": 0.5,
"macro_event_id": "<string>",
"symbols": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/graph/v1/thesis"
payload = {
"narrative": "<string>",
"sectors": ["<string>"],
"catalysts": ["<string>"],
"invalidation_conditions": ["<string>"],
"catalyst_ids": ["<string>"],
"risk_ids": ["<string>"],
"confidence": 0.5,
"macro_event_id": "<string>",
"symbols": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
narrative: '<string>',
sectors: ['<string>'],
catalysts: ['<string>'],
invalidation_conditions: ['<string>'],
catalyst_ids: ['<string>'],
risk_ids: ['<string>'],
confidence: 0.5,
macro_event_id: '<string>',
symbols: ['<string>']
})
};
fetch('https://api.example.com/api/graph/v1/thesis', 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/thesis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'narrative' => '<string>',
'sectors' => [
'<string>'
],
'catalysts' => [
'<string>'
],
'invalidation_conditions' => [
'<string>'
],
'catalyst_ids' => [
'<string>'
],
'risk_ids' => [
'<string>'
],
'confidence' => 0.5,
'macro_event_id' => '<string>',
'symbols' => [
'<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/thesis"
payload := strings.NewReader("{\n \"narrative\": \"<string>\",\n \"sectors\": [\n \"<string>\"\n ],\n \"catalysts\": [\n \"<string>\"\n ],\n \"invalidation_conditions\": [\n \"<string>\"\n ],\n \"catalyst_ids\": [\n \"<string>\"\n ],\n \"risk_ids\": [\n \"<string>\"\n ],\n \"confidence\": 0.5,\n \"macro_event_id\": \"<string>\",\n \"symbols\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.example.com/api/graph/v1/thesis")
.header("Content-Type", "application/json")
.body("{\n \"narrative\": \"<string>\",\n \"sectors\": [\n \"<string>\"\n ],\n \"catalysts\": [\n \"<string>\"\n ],\n \"invalidation_conditions\": [\n \"<string>\"\n ],\n \"catalyst_ids\": [\n \"<string>\"\n ],\n \"risk_ids\": [\n \"<string>\"\n ],\n \"confidence\": 0.5,\n \"macro_event_id\": \"<string>\",\n \"symbols\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/thesis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"narrative\": \"<string>\",\n \"sectors\": [\n \"<string>\"\n ],\n \"catalysts\": [\n \"<string>\"\n ],\n \"invalidation_conditions\": [\n \"<string>\"\n ],\n \"catalyst_ids\": [\n \"<string>\"\n ],\n \"risk_ids\": [\n \"<string>\"\n ],\n \"confidence\": 0.5,\n \"macro_event_id\": \"<string>\",\n \"symbols\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"thesis_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"status": "active",
"direction": "bullish",
"timeframe": "intraday",
"narrative": "<string>",
"sectors": [
"<string>"
],
"confidence": 0.5,
"source": "ai_generated",
"valid_until": "2023-11-07T05:31:56Z",
"regime_dominant": "<string>",
"regime_confidence": 123,
"regime_vector": {},
"vix_regime": "<string>",
"day_type": "<string>",
"catalysts": [
"<string>"
],
"invalidation_conditions": [
"<string>"
],
"catalyst_ids": [
"<string>"
],
"risk_ids": [
"<string>"
],
"debate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"macro_event_id": "<string>",
"symbols": [
"<string>"
],
"regime_drifted": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Create a thesis manually
Create a new thesis with regime snapshot from current market conditions.
curl --request POST \
--url https://api.example.com/api/graph/v1/thesis \
--header 'Content-Type: application/json' \
--data '
{
"narrative": "<string>",
"sectors": [
"<string>"
],
"catalysts": [
"<string>"
],
"invalidation_conditions": [
"<string>"
],
"catalyst_ids": [
"<string>"
],
"risk_ids": [
"<string>"
],
"confidence": 0.5,
"macro_event_id": "<string>",
"symbols": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/graph/v1/thesis"
payload = {
"narrative": "<string>",
"sectors": ["<string>"],
"catalysts": ["<string>"],
"invalidation_conditions": ["<string>"],
"catalyst_ids": ["<string>"],
"risk_ids": ["<string>"],
"confidence": 0.5,
"macro_event_id": "<string>",
"symbols": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
narrative: '<string>',
sectors: ['<string>'],
catalysts: ['<string>'],
invalidation_conditions: ['<string>'],
catalyst_ids: ['<string>'],
risk_ids: ['<string>'],
confidence: 0.5,
macro_event_id: '<string>',
symbols: ['<string>']
})
};
fetch('https://api.example.com/api/graph/v1/thesis', 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/thesis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'narrative' => '<string>',
'sectors' => [
'<string>'
],
'catalysts' => [
'<string>'
],
'invalidation_conditions' => [
'<string>'
],
'catalyst_ids' => [
'<string>'
],
'risk_ids' => [
'<string>'
],
'confidence' => 0.5,
'macro_event_id' => '<string>',
'symbols' => [
'<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/thesis"
payload := strings.NewReader("{\n \"narrative\": \"<string>\",\n \"sectors\": [\n \"<string>\"\n ],\n \"catalysts\": [\n \"<string>\"\n ],\n \"invalidation_conditions\": [\n \"<string>\"\n ],\n \"catalyst_ids\": [\n \"<string>\"\n ],\n \"risk_ids\": [\n \"<string>\"\n ],\n \"confidence\": 0.5,\n \"macro_event_id\": \"<string>\",\n \"symbols\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.example.com/api/graph/v1/thesis")
.header("Content-Type", "application/json")
.body("{\n \"narrative\": \"<string>\",\n \"sectors\": [\n \"<string>\"\n ],\n \"catalysts\": [\n \"<string>\"\n ],\n \"invalidation_conditions\": [\n \"<string>\"\n ],\n \"catalyst_ids\": [\n \"<string>\"\n ],\n \"risk_ids\": [\n \"<string>\"\n ],\n \"confidence\": 0.5,\n \"macro_event_id\": \"<string>\",\n \"symbols\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/thesis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"narrative\": \"<string>\",\n \"sectors\": [\n \"<string>\"\n ],\n \"catalysts\": [\n \"<string>\"\n ],\n \"invalidation_conditions\": [\n \"<string>\"\n ],\n \"catalyst_ids\": [\n \"<string>\"\n ],\n \"risk_ids\": [\n \"<string>\"\n ],\n \"confidence\": 0.5,\n \"macro_event_id\": \"<string>\",\n \"symbols\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"thesis_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"status": "active",
"direction": "bullish",
"timeframe": "intraday",
"narrative": "<string>",
"sectors": [
"<string>"
],
"confidence": 0.5,
"source": "ai_generated",
"valid_until": "2023-11-07T05:31:56Z",
"regime_dominant": "<string>",
"regime_confidence": 123,
"regime_vector": {},
"vix_regime": "<string>",
"day_type": "<string>",
"catalysts": [
"<string>"
],
"invalidation_conditions": [
"<string>"
],
"catalyst_ids": [
"<string>"
],
"risk_ids": [
"<string>"
],
"debate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"macro_event_id": "<string>",
"symbols": [
"<string>"
],
"regime_drifted": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
Request body for manually creating a thesis.
bullish, bearish, neutral intraday, swing, position 1-2 sentence thesis
10 - 1000Ranked by thesis fit
1 - 11 elements1010Structured catalyst IDs from taxonomy
10Structured risk IDs from taxonomy
10Thesis conviction 0-1
0 <= x <= 1Driving MacroEvent event_id
Symbols associated with this thesis
50Response
Successful Response
Full thesis model for API responses.
Thesis lifecycle status.
active, invalidated, expired, realized bullish, bearish, neutral intraday, swing, position 1-2 sentence human-readable thesis
Ranked by thesis fit
Thesis-specific conviction 0-1
0 <= x <= 1ai_generated, user_defined, debate_derived, news_derived Auto-set based on timeframe
V5 dominant state at creation
V5 Shannon entropy confidence (0-100)
Full 6-state probabilities (for audit)
Show child attributes
Show child attributes
VIX regime label at creation
Day classification at creation
Structured catalyst IDs
Structured risk IDs
Driving MacroEvent (graph event_id)
True if current regime differs from thesis regime