AI chart analysis: deterministic pattern geometry + LLM narrative
curl --request POST \
--url https://api.example.com/api/graph/v1/chart/{symbol}/analyze \
--header 'Content-Type: application/json' \
--data '
{
"candles": [
{
"t": "<string>",
"o": 0,
"h": 0,
"l": 0,
"c": 0,
"v": 500000000000000
}
]
}
'import requests
url = "https://api.example.com/api/graph/v1/chart/{symbol}/analyze"
payload = { "candles": [
{
"t": "<string>",
"o": 0,
"h": 0,
"l": 0,
"c": 0,
"v": 500000000000000
}
] }
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({candles: [{t: '<string>', o: 0, h: 0, l: 0, c: 0, v: 500000000000000}]})
};
fetch('https://api.example.com/api/graph/v1/chart/{symbol}/analyze', 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/chart/{symbol}/analyze",
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([
'candles' => [
[
't' => '<string>',
'o' => 0,
'h' => 0,
'l' => 0,
'c' => 0,
'v' => 500000000000000
]
]
]),
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/chart/{symbol}/analyze"
payload := strings.NewReader("{\n \"candles\": [\n {\n \"t\": \"<string>\",\n \"o\": 0,\n \"h\": 0,\n \"l\": 0,\n \"c\": 0,\n \"v\": 500000000000000\n }\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/chart/{symbol}/analyze")
.header("Content-Type", "application/json")
.body("{\n \"candles\": [\n {\n \"t\": \"<string>\",\n \"o\": 0,\n \"h\": 0,\n \"l\": 0,\n \"c\": 0,\n \"v\": 500000000000000\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/chart/{symbol}/analyze")
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 \"candles\": [\n {\n \"t\": \"<string>\",\n \"o\": 0,\n \"h\": 0,\n \"l\": 0,\n \"c\": 0,\n \"v\": 500000000000000\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"symbol": "<string>",
"interval": "1m",
"period": "1d",
"pattern": "<string>",
"bias": "bullish",
"note": "<string>",
"resistance": 123,
"support": 123,
"target": 123,
"invalidation": 123,
"trendlines": {
"support": {
"from": {
"t": "<string>",
"price": 123
},
"to": {
"t": "<string>",
"price": 123
}
},
"resistance": {
"from": {
"t": "<string>",
"price": 123
},
"to": {
"t": "<string>",
"price": 123
}
}
},
"provider": "<string>",
"model": "<string>",
"cached": false,
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Chart Analysis
AI chart analysis: deterministic pattern geometry + LLM narrative
POST
/
api
/
graph
/
v1
/
chart
/
{symbol}
/
analyze
AI chart analysis: deterministic pattern geometry + LLM narrative
curl --request POST \
--url https://api.example.com/api/graph/v1/chart/{symbol}/analyze \
--header 'Content-Type: application/json' \
--data '
{
"candles": [
{
"t": "<string>",
"o": 0,
"h": 0,
"l": 0,
"c": 0,
"v": 500000000000000
}
]
}
'import requests
url = "https://api.example.com/api/graph/v1/chart/{symbol}/analyze"
payload = { "candles": [
{
"t": "<string>",
"o": 0,
"h": 0,
"l": 0,
"c": 0,
"v": 500000000000000
}
] }
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({candles: [{t: '<string>', o: 0, h: 0, l: 0, c: 0, v: 500000000000000}]})
};
fetch('https://api.example.com/api/graph/v1/chart/{symbol}/analyze', 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/chart/{symbol}/analyze",
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([
'candles' => [
[
't' => '<string>',
'o' => 0,
'h' => 0,
'l' => 0,
'c' => 0,
'v' => 500000000000000
]
]
]),
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/chart/{symbol}/analyze"
payload := strings.NewReader("{\n \"candles\": [\n {\n \"t\": \"<string>\",\n \"o\": 0,\n \"h\": 0,\n \"l\": 0,\n \"c\": 0,\n \"v\": 500000000000000\n }\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/chart/{symbol}/analyze")
.header("Content-Type", "application/json")
.body("{\n \"candles\": [\n {\n \"t\": \"<string>\",\n \"o\": 0,\n \"h\": 0,\n \"l\": 0,\n \"c\": 0,\n \"v\": 500000000000000\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/chart/{symbol}/analyze")
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 \"candles\": [\n {\n \"t\": \"<string>\",\n \"o\": 0,\n \"h\": 0,\n \"l\": 0,\n \"c\": 0,\n \"v\": 500000000000000\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"symbol": "<string>",
"interval": "1m",
"period": "1d",
"pattern": "<string>",
"bias": "bullish",
"note": "<string>",
"resistance": 123,
"support": 123,
"target": 123,
"invalidation": 123,
"trendlines": {
"support": {
"from": {
"t": "<string>",
"price": 123
},
"to": {
"t": "<string>",
"price": 123
}
},
"resistance": {
"from": {
"t": "<string>",
"price": 123
},
"to": {
"t": "<string>",
"price": 123
}
}
},
"provider": "<string>",
"model": "<string>",
"cached": false,
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Body
application/json
Analyze the candles currently rendered on the client's chart.
Candle interval of the supplied bars
Available options:
1m, 2m, 5m, 15m, 30m, 1h, 1d Chart period of the supplied bars
Available options:
1d, 5d, 1m, 3m, 6m, 1y, 5y OHLCV bars in chart order (oldest first), warmup excluded
Required array length:
20 - 1500 elementsShow child attributes
Show child attributes
Response
Successful Response
Deterministic geometry + LLM narrative. Levels never come from the LLM.
Available options:
1m, 2m, 5m, 15m, 30m, 1h, 1d Available options:
1d, 5d, 1m, 3m, 6m, 1y, 5y Detected pattern label
Available options:
bullish, bearish, neutral LLM narrative (None if unavailable)
Resistance trendline at last bar
Support trendline at last bar
Breakout target (res + 0.32*range)
Invalidation (sup - 0.12*range)
Show child attributes
Show child attributes