curl --request POST \
--url https://api.example.com/api/graph/v1/execution/preflight \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "<string>",
"qty": 123,
"instrument_type": "equity",
"contract_symbol": "<string>",
"limit_price": 123,
"stop_price": 123,
"reference_price": 1,
"strategy": "single",
"take_profit_price": 1,
"stop_loss_price": 1,
"time_in_force": "day",
"idempotency_key": "<string>",
"source": "<string>",
"order_handoff_id": "<string>"
}
'import requests
url = "https://api.example.com/api/graph/v1/execution/preflight"
payload = {
"symbol": "<string>",
"qty": 123,
"instrument_type": "equity",
"contract_symbol": "<string>",
"limit_price": 123,
"stop_price": 123,
"reference_price": 1,
"strategy": "single",
"take_profit_price": 1,
"stop_loss_price": 1,
"time_in_force": "day",
"idempotency_key": "<string>",
"source": "<string>",
"order_handoff_id": "<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({
symbol: '<string>',
qty: 123,
instrument_type: 'equity',
contract_symbol: '<string>',
limit_price: 123,
stop_price: 123,
reference_price: 1,
strategy: 'single',
take_profit_price: 1,
stop_loss_price: 1,
time_in_force: 'day',
idempotency_key: '<string>',
source: '<string>',
order_handoff_id: '<string>'
})
};
fetch('https://api.example.com/api/graph/v1/execution/preflight', 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/execution/preflight",
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([
'symbol' => '<string>',
'qty' => 123,
'instrument_type' => 'equity',
'contract_symbol' => '<string>',
'limit_price' => 123,
'stop_price' => 123,
'reference_price' => 1,
'strategy' => 'single',
'take_profit_price' => 1,
'stop_loss_price' => 1,
'time_in_force' => 'day',
'idempotency_key' => '<string>',
'source' => '<string>',
'order_handoff_id' => '<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/execution/preflight"
payload := strings.NewReader("{\n \"symbol\": \"<string>\",\n \"qty\": 123,\n \"instrument_type\": \"equity\",\n \"contract_symbol\": \"<string>\",\n \"limit_price\": 123,\n \"stop_price\": 123,\n \"reference_price\": 1,\n \"strategy\": \"single\",\n \"take_profit_price\": 1,\n \"stop_loss_price\": 1,\n \"time_in_force\": \"day\",\n \"idempotency_key\": \"<string>\",\n \"source\": \"<string>\",\n \"order_handoff_id\": \"<string>\"\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/execution/preflight")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"<string>\",\n \"qty\": 123,\n \"instrument_type\": \"equity\",\n \"contract_symbol\": \"<string>\",\n \"limit_price\": 123,\n \"stop_price\": 123,\n \"reference_price\": 1,\n \"strategy\": \"single\",\n \"take_profit_price\": 1,\n \"stop_loss_price\": 1,\n \"time_in_force\": \"day\",\n \"idempotency_key\": \"<string>\",\n \"source\": \"<string>\",\n \"order_handoff_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/execution/preflight")
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 \"symbol\": \"<string>\",\n \"qty\": 123,\n \"instrument_type\": \"equity\",\n \"contract_symbol\": \"<string>\",\n \"limit_price\": 123,\n \"stop_price\": 123,\n \"reference_price\": 1,\n \"strategy\": \"single\",\n \"take_profit_price\": 1,\n \"stop_loss_price\": 1,\n \"time_in_force\": \"day\",\n \"idempotency_key\": \"<string>\",\n \"source\": \"<string>\",\n \"order_handoff_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"passed": true,
"effective_trading_mode": "<string>",
"blocked_reasons": [
"<string>"
],
"approval_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"intent_hash": "<string>",
"approval_expires_at": "2023-11-07T05:31:56Z",
"risk_decision_id": "<string>",
"risk_policy_version": "<string>",
"order_handoff_id": "<string>",
"order_review": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Check risk gates for an order without placing it
Runs the same daily-loss latch, kill switch, and chart paper rule as start-from-card, but places nothing. Returns whether the order would pass and, if not, the verbatim block reasons.
curl --request POST \
--url https://api.example.com/api/graph/v1/execution/preflight \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "<string>",
"qty": 123,
"instrument_type": "equity",
"contract_symbol": "<string>",
"limit_price": 123,
"stop_price": 123,
"reference_price": 1,
"strategy": "single",
"take_profit_price": 1,
"stop_loss_price": 1,
"time_in_force": "day",
"idempotency_key": "<string>",
"source": "<string>",
"order_handoff_id": "<string>"
}
'import requests
url = "https://api.example.com/api/graph/v1/execution/preflight"
payload = {
"symbol": "<string>",
"qty": 123,
"instrument_type": "equity",
"contract_symbol": "<string>",
"limit_price": 123,
"stop_price": 123,
"reference_price": 1,
"strategy": "single",
"take_profit_price": 1,
"stop_loss_price": 1,
"time_in_force": "day",
"idempotency_key": "<string>",
"source": "<string>",
"order_handoff_id": "<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({
symbol: '<string>',
qty: 123,
instrument_type: 'equity',
contract_symbol: '<string>',
limit_price: 123,
stop_price: 123,
reference_price: 1,
strategy: 'single',
take_profit_price: 1,
stop_loss_price: 1,
time_in_force: 'day',
idempotency_key: '<string>',
source: '<string>',
order_handoff_id: '<string>'
})
};
fetch('https://api.example.com/api/graph/v1/execution/preflight', 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/execution/preflight",
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([
'symbol' => '<string>',
'qty' => 123,
'instrument_type' => 'equity',
'contract_symbol' => '<string>',
'limit_price' => 123,
'stop_price' => 123,
'reference_price' => 1,
'strategy' => 'single',
'take_profit_price' => 1,
'stop_loss_price' => 1,
'time_in_force' => 'day',
'idempotency_key' => '<string>',
'source' => '<string>',
'order_handoff_id' => '<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/execution/preflight"
payload := strings.NewReader("{\n \"symbol\": \"<string>\",\n \"qty\": 123,\n \"instrument_type\": \"equity\",\n \"contract_symbol\": \"<string>\",\n \"limit_price\": 123,\n \"stop_price\": 123,\n \"reference_price\": 1,\n \"strategy\": \"single\",\n \"take_profit_price\": 1,\n \"stop_loss_price\": 1,\n \"time_in_force\": \"day\",\n \"idempotency_key\": \"<string>\",\n \"source\": \"<string>\",\n \"order_handoff_id\": \"<string>\"\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/execution/preflight")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"<string>\",\n \"qty\": 123,\n \"instrument_type\": \"equity\",\n \"contract_symbol\": \"<string>\",\n \"limit_price\": 123,\n \"stop_price\": 123,\n \"reference_price\": 1,\n \"strategy\": \"single\",\n \"take_profit_price\": 1,\n \"stop_loss_price\": 1,\n \"time_in_force\": \"day\",\n \"idempotency_key\": \"<string>\",\n \"source\": \"<string>\",\n \"order_handoff_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/execution/preflight")
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 \"symbol\": \"<string>\",\n \"qty\": 123,\n \"instrument_type\": \"equity\",\n \"contract_symbol\": \"<string>\",\n \"limit_price\": 123,\n \"stop_price\": 123,\n \"reference_price\": 1,\n \"strategy\": \"single\",\n \"take_profit_price\": 1,\n \"stop_loss_price\": 1,\n \"time_in_force\": \"day\",\n \"idempotency_key\": \"<string>\",\n \"source\": \"<string>\",\n \"order_handoff_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"passed": true,
"effective_trading_mode": "<string>",
"blocked_reasons": [
"<string>"
],
"approval_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"intent_hash": "<string>",
"approval_expires_at": "2023-11-07T05:31:56Z",
"risk_decision_id": "<string>",
"risk_policy_version": "<string>",
"order_handoff_id": "<string>",
"order_review": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
Request to check risk gates for an order WITHOUT placing it (Slice 1 / C2).
Mirrors the shape of a chart-lab order intent. BL-02 runs the same current deterministic Guardian adapter used immediately before submit for single orders. Multi-leg broker strategies remain fail-closed pending OR-03.
Ticker symbol
Order side
buy, sell Order quantity
Order type
market, limit, stop, stop_limit equity, option OCC contract identity required for an option review
^[A-Z]{1,6}\d{6}[CP]\d{8}$Limit price when applicable
Stop trigger when applicable
Current quote for market-order risk
x > 0single, bracket, oco, oto x > 0x > 0day, gtc Stable chart intent identity; required to issue an OR-03 submit approval
1 - 128Origin tag; a value starting with 'chart' triggers the paper-lock rule
Durable OR-06 Review lineage; valid only for chart_agent_proposal
^handoff_[a-f0-9]{24}$Response
Successful Response
Result of a non-placing risk-gate check (Slice 1 / C2).
True when no gate blocked the order
The trading mode that would be used (from the user profile): 'paper' or 'live'
Human-readable reasons the order would be blocked (empty when passed)
Server-issued approval bound to the immutable intent; absent when blocked
^[a-f0-9]{64}$^[a-f0-9]{64}$^handoff_[a-f0-9]{24}$Immutable owner-scoped executable review; absent for legacy advisory calls