curl --request PUT \
--url https://api.example.com/api/graph/v1/action-cards/{card_id}/promote \
--header 'Content-Type: application/json' \
--data '
{
"contract": {
"ticker": "<string>",
"strike": 123,
"expiration": "<string>",
"dte": 123,
"delta": 123,
"bid": 123,
"ask": 123,
"mid": 123,
"iv": 123,
"spread_pct": 123,
"oi": 123,
"gamma": 123,
"theta": 123,
"vega": 123,
"iv_percentile": 123,
"volume": 123
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"entry": {
"trigger_type": "<string>",
"trigger_level": 123,
"trigger_name": "<string>",
"status": "pending",
"entry_window": "<string>",
"timing_modifier": "1.0",
"order_type": "limit",
"limit_price": 123,
"scale_plan": [
{
"contracts": 123,
"trigger": "<string>"
}
]
},
"exit_plan": {
"stop": {
"price": 123,
"basis": "<string>",
"premium": 123,
"premium_basis": "<string>"
},
"targets": [
{
"level": 123,
"basis": "<string>",
"pct": 123,
"action": "<string>",
"premium": 123
}
],
"trail": {
"activation": "<string>",
"method": "<string>"
},
"time_stops": {
"no_progress_hours": 123,
"max_hold_days": 123,
"dte_floor": 123
},
"invalidations": [
{
"trigger": "<string>",
"level": 123
}
]
},
"position_sizing": {
"risk_per_trade_pct": 123,
"max_risk_dollars": 123,
"premium": 123,
"stop_loss_pct": 123,
"risk_per_contract": 123,
"max_contracts": 123,
"suggested_contracts": 123,
"allocation_pct": 123
},
"risk_status": {
"portfolio_heat_pct": 123,
"max_heat_pct": 123,
"open_positions": 123,
"available_slots": 123,
"daily_pnl_pct": 123,
"weekly_pnl_pct": 123,
"cleared_to_trade": true
}
}
'import requests
url = "https://api.example.com/api/graph/v1/action-cards/{card_id}/promote"
payload = {
"contract": {
"ticker": "<string>",
"strike": 123,
"expiration": "<string>",
"dte": 123,
"delta": 123,
"bid": 123,
"ask": 123,
"mid": 123,
"iv": 123,
"spread_pct": 123,
"oi": 123,
"gamma": 123,
"theta": 123,
"vega": 123,
"iv_percentile": 123,
"volume": 123
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"entry": {
"trigger_type": "<string>",
"trigger_level": 123,
"trigger_name": "<string>",
"status": "pending",
"entry_window": "<string>",
"timing_modifier": "1.0",
"order_type": "limit",
"limit_price": 123,
"scale_plan": [
{
"contracts": 123,
"trigger": "<string>"
}
]
},
"exit_plan": {
"stop": {
"price": 123,
"basis": "<string>",
"premium": 123,
"premium_basis": "<string>"
},
"targets": [
{
"level": 123,
"basis": "<string>",
"pct": 123,
"action": "<string>",
"premium": 123
}
],
"trail": {
"activation": "<string>",
"method": "<string>"
},
"time_stops": {
"no_progress_hours": 123,
"max_hold_days": 123,
"dte_floor": 123
},
"invalidations": [
{
"trigger": "<string>",
"level": 123
}
]
},
"position_sizing": {
"risk_per_trade_pct": 123,
"max_risk_dollars": 123,
"premium": 123,
"stop_loss_pct": 123,
"risk_per_contract": 123,
"max_contracts": 123,
"suggested_contracts": 123,
"allocation_pct": 123
},
"risk_status": {
"portfolio_heat_pct": 123,
"max_heat_pct": 123,
"open_positions": 123,
"available_slots": 123,
"daily_pnl_pct": 123,
"weekly_pnl_pct": 123,
"cleared_to_trade": True
}
}
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({
contract: {
ticker: '<string>',
strike: 123,
expiration: '<string>',
dte: 123,
delta: 123,
bid: 123,
ask: 123,
mid: 123,
iv: 123,
spread_pct: 123,
oi: 123,
gamma: 123,
theta: 123,
vega: 123,
iv_percentile: 123,
volume: 123
},
quality: {
liquidity_grade: '<string>',
spread_grade: '<string>',
iv_grade: '<string>',
composite: '<string>'
},
entry: {
trigger_type: '<string>',
trigger_level: 123,
trigger_name: '<string>',
status: 'pending',
entry_window: '<string>',
timing_modifier: '1.0',
order_type: 'limit',
limit_price: 123,
scale_plan: [{contracts: 123, trigger: '<string>'}]
},
exit_plan: {
stop: {price: 123, basis: '<string>', premium: 123, premium_basis: '<string>'},
targets: [{level: 123, basis: '<string>', pct: 123, action: '<string>', premium: 123}],
trail: {activation: '<string>', method: '<string>'},
time_stops: {no_progress_hours: 123, max_hold_days: 123, dte_floor: 123},
invalidations: [{trigger: '<string>', level: 123}]
},
position_sizing: {
risk_per_trade_pct: 123,
max_risk_dollars: 123,
premium: 123,
stop_loss_pct: 123,
risk_per_contract: 123,
max_contracts: 123,
suggested_contracts: 123,
allocation_pct: 123
},
risk_status: {
portfolio_heat_pct: 123,
max_heat_pct: 123,
open_positions: 123,
available_slots: 123,
daily_pnl_pct: 123,
weekly_pnl_pct: 123,
cleared_to_trade: true
}
})
};
fetch('https://api.example.com/api/graph/v1/action-cards/{card_id}/promote', 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/action-cards/{card_id}/promote",
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([
'contract' => [
'ticker' => '<string>',
'strike' => 123,
'expiration' => '<string>',
'dte' => 123,
'delta' => 123,
'bid' => 123,
'ask' => 123,
'mid' => 123,
'iv' => 123,
'spread_pct' => 123,
'oi' => 123,
'gamma' => 123,
'theta' => 123,
'vega' => 123,
'iv_percentile' => 123,
'volume' => 123
],
'quality' => [
'liquidity_grade' => '<string>',
'spread_grade' => '<string>',
'iv_grade' => '<string>',
'composite' => '<string>'
],
'entry' => [
'trigger_type' => '<string>',
'trigger_level' => 123,
'trigger_name' => '<string>',
'status' => 'pending',
'entry_window' => '<string>',
'timing_modifier' => '1.0',
'order_type' => 'limit',
'limit_price' => 123,
'scale_plan' => [
[
'contracts' => 123,
'trigger' => '<string>'
]
]
],
'exit_plan' => [
'stop' => [
'price' => 123,
'basis' => '<string>',
'premium' => 123,
'premium_basis' => '<string>'
],
'targets' => [
[
'level' => 123,
'basis' => '<string>',
'pct' => 123,
'action' => '<string>',
'premium' => 123
]
],
'trail' => [
'activation' => '<string>',
'method' => '<string>'
],
'time_stops' => [
'no_progress_hours' => 123,
'max_hold_days' => 123,
'dte_floor' => 123
],
'invalidations' => [
[
'trigger' => '<string>',
'level' => 123
]
]
],
'position_sizing' => [
'risk_per_trade_pct' => 123,
'max_risk_dollars' => 123,
'premium' => 123,
'stop_loss_pct' => 123,
'risk_per_contract' => 123,
'max_contracts' => 123,
'suggested_contracts' => 123,
'allocation_pct' => 123
],
'risk_status' => [
'portfolio_heat_pct' => 123,
'max_heat_pct' => 123,
'open_positions' => 123,
'available_slots' => 123,
'daily_pnl_pct' => 123,
'weekly_pnl_pct' => 123,
'cleared_to_trade' => true
]
]),
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/action-cards/{card_id}/promote"
payload := strings.NewReader("{\n \"contract\": {\n \"ticker\": \"<string>\",\n \"strike\": 123,\n \"expiration\": \"<string>\",\n \"dte\": 123,\n \"delta\": 123,\n \"bid\": 123,\n \"ask\": 123,\n \"mid\": 123,\n \"iv\": 123,\n \"spread_pct\": 123,\n \"oi\": 123,\n \"gamma\": 123,\n \"theta\": 123,\n \"vega\": 123,\n \"iv_percentile\": 123,\n \"volume\": 123\n },\n \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"entry\": {\n \"trigger_type\": \"<string>\",\n \"trigger_level\": 123,\n \"trigger_name\": \"<string>\",\n \"status\": \"pending\",\n \"entry_window\": \"<string>\",\n \"timing_modifier\": \"1.0\",\n \"order_type\": \"limit\",\n \"limit_price\": 123,\n \"scale_plan\": [\n {\n \"contracts\": 123,\n \"trigger\": \"<string>\"\n }\n ]\n },\n \"exit_plan\": {\n \"stop\": {\n \"price\": 123,\n \"basis\": \"<string>\",\n \"premium\": 123,\n \"premium_basis\": \"<string>\"\n },\n \"targets\": [\n {\n \"level\": 123,\n \"basis\": \"<string>\",\n \"pct\": 123,\n \"action\": \"<string>\",\n \"premium\": 123\n }\n ],\n \"trail\": {\n \"activation\": \"<string>\",\n \"method\": \"<string>\"\n },\n \"time_stops\": {\n \"no_progress_hours\": 123,\n \"max_hold_days\": 123,\n \"dte_floor\": 123\n },\n \"invalidations\": [\n {\n \"trigger\": \"<string>\",\n \"level\": 123\n }\n ]\n },\n \"position_sizing\": {\n \"risk_per_trade_pct\": 123,\n \"max_risk_dollars\": 123,\n \"premium\": 123,\n \"stop_loss_pct\": 123,\n \"risk_per_contract\": 123,\n \"max_contracts\": 123,\n \"suggested_contracts\": 123,\n \"allocation_pct\": 123\n },\n \"risk_status\": {\n \"portfolio_heat_pct\": 123,\n \"max_heat_pct\": 123,\n \"open_positions\": 123,\n \"available_slots\": 123,\n \"daily_pnl_pct\": 123,\n \"weekly_pnl_pct\": 123,\n \"cleared_to_trade\": true\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/action-cards/{card_id}/promote")
.header("Content-Type", "application/json")
.body("{\n \"contract\": {\n \"ticker\": \"<string>\",\n \"strike\": 123,\n \"expiration\": \"<string>\",\n \"dte\": 123,\n \"delta\": 123,\n \"bid\": 123,\n \"ask\": 123,\n \"mid\": 123,\n \"iv\": 123,\n \"spread_pct\": 123,\n \"oi\": 123,\n \"gamma\": 123,\n \"theta\": 123,\n \"vega\": 123,\n \"iv_percentile\": 123,\n \"volume\": 123\n },\n \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"entry\": {\n \"trigger_type\": \"<string>\",\n \"trigger_level\": 123,\n \"trigger_name\": \"<string>\",\n \"status\": \"pending\",\n \"entry_window\": \"<string>\",\n \"timing_modifier\": \"1.0\",\n \"order_type\": \"limit\",\n \"limit_price\": 123,\n \"scale_plan\": [\n {\n \"contracts\": 123,\n \"trigger\": \"<string>\"\n }\n ]\n },\n \"exit_plan\": {\n \"stop\": {\n \"price\": 123,\n \"basis\": \"<string>\",\n \"premium\": 123,\n \"premium_basis\": \"<string>\"\n },\n \"targets\": [\n {\n \"level\": 123,\n \"basis\": \"<string>\",\n \"pct\": 123,\n \"action\": \"<string>\",\n \"premium\": 123\n }\n ],\n \"trail\": {\n \"activation\": \"<string>\",\n \"method\": \"<string>\"\n },\n \"time_stops\": {\n \"no_progress_hours\": 123,\n \"max_hold_days\": 123,\n \"dte_floor\": 123\n },\n \"invalidations\": [\n {\n \"trigger\": \"<string>\",\n \"level\": 123\n }\n ]\n },\n \"position_sizing\": {\n \"risk_per_trade_pct\": 123,\n \"max_risk_dollars\": 123,\n \"premium\": 123,\n \"stop_loss_pct\": 123,\n \"risk_per_contract\": 123,\n \"max_contracts\": 123,\n \"suggested_contracts\": 123,\n \"allocation_pct\": 123\n },\n \"risk_status\": {\n \"portfolio_heat_pct\": 123,\n \"max_heat_pct\": 123,\n \"open_positions\": 123,\n \"available_slots\": 123,\n \"daily_pnl_pct\": 123,\n \"weekly_pnl_pct\": 123,\n \"cleared_to_trade\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/action-cards/{card_id}/promote")
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 \"contract\": {\n \"ticker\": \"<string>\",\n \"strike\": 123,\n \"expiration\": \"<string>\",\n \"dte\": 123,\n \"delta\": 123,\n \"bid\": 123,\n \"ask\": 123,\n \"mid\": 123,\n \"iv\": 123,\n \"spread_pct\": 123,\n \"oi\": 123,\n \"gamma\": 123,\n \"theta\": 123,\n \"vega\": 123,\n \"iv_percentile\": 123,\n \"volume\": 123\n },\n \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"entry\": {\n \"trigger_type\": \"<string>\",\n \"trigger_level\": 123,\n \"trigger_name\": \"<string>\",\n \"status\": \"pending\",\n \"entry_window\": \"<string>\",\n \"timing_modifier\": \"1.0\",\n \"order_type\": \"limit\",\n \"limit_price\": 123,\n \"scale_plan\": [\n {\n \"contracts\": 123,\n \"trigger\": \"<string>\"\n }\n ]\n },\n \"exit_plan\": {\n \"stop\": {\n \"price\": 123,\n \"basis\": \"<string>\",\n \"premium\": 123,\n \"premium_basis\": \"<string>\"\n },\n \"targets\": [\n {\n \"level\": 123,\n \"basis\": \"<string>\",\n \"pct\": 123,\n \"action\": \"<string>\",\n \"premium\": 123\n }\n ],\n \"trail\": {\n \"activation\": \"<string>\",\n \"method\": \"<string>\"\n },\n \"time_stops\": {\n \"no_progress_hours\": 123,\n \"max_hold_days\": 123,\n \"dte_floor\": 123\n },\n \"invalidations\": [\n {\n \"trigger\": \"<string>\",\n \"level\": 123\n }\n ]\n },\n \"position_sizing\": {\n \"risk_per_trade_pct\": 123,\n \"max_risk_dollars\": 123,\n \"premium\": 123,\n \"stop_loss_pct\": 123,\n \"risk_per_contract\": 123,\n \"max_contracts\": 123,\n \"suggested_contracts\": 123,\n \"allocation_pct\": 123\n },\n \"risk_status\": {\n \"portfolio_heat_pct\": 123,\n \"max_heat_pct\": 123,\n \"open_positions\": 123,\n \"available_slots\": 123,\n \"daily_pnl_pct\": 123,\n \"weekly_pnl_pct\": 123,\n \"cleared_to_trade\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"direction_bias": "bull",
"run_meta": {
"date": "<string>",
"time": "<string>",
"account_value": "<string>",
"account_tier": "<string>",
"tz": "America/Chicago"
},
"regime": {
"classification": "<string>",
"confidence": "<string>",
"vix": "<string>",
"conditions_met": [
"<string>"
],
"conditions_failed": [
"<string>"
],
"vix_context": {
"current": "<string>",
"sma50": "<string>",
"percentile_252d": 123,
"term_structure": "<string>"
}
},
"day_type": {
"classification": "<string>",
"day_type_confidence": 50,
"trend_score": 50,
"rotation_score": 50,
"day_type_detail": "<string>",
"signals": [
"<string>"
],
"size_modifier": "1.0"
},
"institutional_levels": {
"vwap": "<string>",
"ib_high": "<string>",
"ib_low": "<string>",
"ib_range": "<string>",
"vwap_plus_1sd": "<string>",
"vwap_plus_2sd": "<string>",
"vwap_minus_1sd": "<string>",
"vwap_minus_2sd": "<string>",
"price_vs_vwap_sd": "<string>",
"ib_range_vs_atr": "<string>",
"ib_1_5x": "<string>",
"ib_2x": "<string>",
"prior_vah": "<string>",
"prior_val": "<string>",
"prior_poc": "<string>",
"dev_vah": "<string>",
"dev_val": "<string>",
"dev_poc": "<string>",
"pp": "<string>",
"r1": "<string>",
"r2": "<string>",
"r3": "<string>",
"s1": "<string>",
"s2": "<string>",
"s3": "<string>",
"pdh": "<string>",
"pdl": "<string>",
"pdc": "<string>",
"onh": "<string>",
"onl": "<string>"
},
"trend": {
"price": "<string>",
"ema20": "<string>",
"sma50": "<string>",
"stack_valid": true,
"sma200": "<string>",
"dist_to_ema20_atr": "<string>"
},
"volume": {
"rvol": "<string>",
"trend": "<string>",
"breakout_node": "<string>"
},
"confluence": {
"confluence_score": "<string>",
"tier": "<string>",
"recommendation": "<string>",
"weights_version": "3.0.0",
"components": {}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thesis": "<string>",
"pattern": {
"confidence": 50,
"detected": "<string>",
"institutional_bonus": 0,
"vcp_metrics": {
"atr_compression_ratio": "<string>",
"range_vs_atr_14": "<string>",
"range_compression_pct": "<string>"
}
},
"contract": {
"ticker": "<string>",
"strike": "<string>",
"expiration": "<string>",
"dte": 123,
"delta": "<string>",
"bid": "<string>",
"ask": "<string>",
"mid": "<string>",
"iv": "<string>",
"spread_pct": "<string>",
"oi": 123,
"gamma": "<string>",
"theta": "<string>",
"vega": "<string>",
"iv_percentile": 123,
"volume": 123
},
"position_sizing": {
"risk_per_trade_pct": "<string>",
"max_risk_dollars": "<string>",
"premium": "<string>",
"stop_loss_pct": "<string>",
"risk_per_contract": "<string>",
"max_contracts": "<string>",
"suggested_contracts": 123,
"allocation_pct": "<string>"
},
"entry": {
"trigger_type": "<string>",
"trigger_level": "<string>",
"trigger_name": "<string>",
"status": "pending",
"entry_window": "<string>",
"timing_modifier": "1.0",
"order_type": "limit",
"limit_price": "<string>",
"scale_plan": [
{
"contracts": 123,
"trigger": "<string>"
}
]
},
"exit_plan": {
"stop": {
"price": "<string>",
"basis": "<string>",
"premium": "<string>",
"premium_basis": "<string>"
},
"targets": [
{
"level": "<string>",
"basis": "<string>",
"pct": 123,
"action": "<string>",
"premium": "<string>"
}
],
"trail": {
"activation": "<string>",
"method": "<string>"
},
"time_stops": {
"no_progress_hours": 123,
"max_hold_days": 123,
"dte_floor": 123
},
"invalidations": [
{
"trigger": "<string>",
"level": "<string>"
}
]
},
"risk_status": {
"portfolio_heat_pct": "<string>",
"max_heat_pct": "<string>",
"open_positions": 123,
"available_slots": 123,
"daily_pnl_pct": "<string>",
"weekly_pnl_pct": "<string>",
"cleared_to_trade": true
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"status": "draft",
"completeness": "signal_only",
"status_reason": "<string>",
"outcome": {
"executed_at": "2023-11-07T05:31:56Z",
"fill_price": "<string>",
"exit_price": "<string>",
"exit_time": "2023-11-07T05:31:56Z",
"pnl_dollars": "<string>",
"pnl_pct": "<string>",
"r_multiple": "<string>",
"exit_reason": "<string>",
"hold_days": 123,
"institutional_validation": {
"ib_target_hit": "<string>",
"vwap_held": true,
"prior_vah_held": true
}
},
"expires_at": "2023-11-07T05:31:56Z"
}Promote action card with additional sections
curl --request PUT \
--url https://api.example.com/api/graph/v1/action-cards/{card_id}/promote \
--header 'Content-Type: application/json' \
--data '
{
"contract": {
"ticker": "<string>",
"strike": 123,
"expiration": "<string>",
"dte": 123,
"delta": 123,
"bid": 123,
"ask": 123,
"mid": 123,
"iv": 123,
"spread_pct": 123,
"oi": 123,
"gamma": 123,
"theta": 123,
"vega": 123,
"iv_percentile": 123,
"volume": 123
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"entry": {
"trigger_type": "<string>",
"trigger_level": 123,
"trigger_name": "<string>",
"status": "pending",
"entry_window": "<string>",
"timing_modifier": "1.0",
"order_type": "limit",
"limit_price": 123,
"scale_plan": [
{
"contracts": 123,
"trigger": "<string>"
}
]
},
"exit_plan": {
"stop": {
"price": 123,
"basis": "<string>",
"premium": 123,
"premium_basis": "<string>"
},
"targets": [
{
"level": 123,
"basis": "<string>",
"pct": 123,
"action": "<string>",
"premium": 123
}
],
"trail": {
"activation": "<string>",
"method": "<string>"
},
"time_stops": {
"no_progress_hours": 123,
"max_hold_days": 123,
"dte_floor": 123
},
"invalidations": [
{
"trigger": "<string>",
"level": 123
}
]
},
"position_sizing": {
"risk_per_trade_pct": 123,
"max_risk_dollars": 123,
"premium": 123,
"stop_loss_pct": 123,
"risk_per_contract": 123,
"max_contracts": 123,
"suggested_contracts": 123,
"allocation_pct": 123
},
"risk_status": {
"portfolio_heat_pct": 123,
"max_heat_pct": 123,
"open_positions": 123,
"available_slots": 123,
"daily_pnl_pct": 123,
"weekly_pnl_pct": 123,
"cleared_to_trade": true
}
}
'import requests
url = "https://api.example.com/api/graph/v1/action-cards/{card_id}/promote"
payload = {
"contract": {
"ticker": "<string>",
"strike": 123,
"expiration": "<string>",
"dte": 123,
"delta": 123,
"bid": 123,
"ask": 123,
"mid": 123,
"iv": 123,
"spread_pct": 123,
"oi": 123,
"gamma": 123,
"theta": 123,
"vega": 123,
"iv_percentile": 123,
"volume": 123
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"entry": {
"trigger_type": "<string>",
"trigger_level": 123,
"trigger_name": "<string>",
"status": "pending",
"entry_window": "<string>",
"timing_modifier": "1.0",
"order_type": "limit",
"limit_price": 123,
"scale_plan": [
{
"contracts": 123,
"trigger": "<string>"
}
]
},
"exit_plan": {
"stop": {
"price": 123,
"basis": "<string>",
"premium": 123,
"premium_basis": "<string>"
},
"targets": [
{
"level": 123,
"basis": "<string>",
"pct": 123,
"action": "<string>",
"premium": 123
}
],
"trail": {
"activation": "<string>",
"method": "<string>"
},
"time_stops": {
"no_progress_hours": 123,
"max_hold_days": 123,
"dte_floor": 123
},
"invalidations": [
{
"trigger": "<string>",
"level": 123
}
]
},
"position_sizing": {
"risk_per_trade_pct": 123,
"max_risk_dollars": 123,
"premium": 123,
"stop_loss_pct": 123,
"risk_per_contract": 123,
"max_contracts": 123,
"suggested_contracts": 123,
"allocation_pct": 123
},
"risk_status": {
"portfolio_heat_pct": 123,
"max_heat_pct": 123,
"open_positions": 123,
"available_slots": 123,
"daily_pnl_pct": 123,
"weekly_pnl_pct": 123,
"cleared_to_trade": True
}
}
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({
contract: {
ticker: '<string>',
strike: 123,
expiration: '<string>',
dte: 123,
delta: 123,
bid: 123,
ask: 123,
mid: 123,
iv: 123,
spread_pct: 123,
oi: 123,
gamma: 123,
theta: 123,
vega: 123,
iv_percentile: 123,
volume: 123
},
quality: {
liquidity_grade: '<string>',
spread_grade: '<string>',
iv_grade: '<string>',
composite: '<string>'
},
entry: {
trigger_type: '<string>',
trigger_level: 123,
trigger_name: '<string>',
status: 'pending',
entry_window: '<string>',
timing_modifier: '1.0',
order_type: 'limit',
limit_price: 123,
scale_plan: [{contracts: 123, trigger: '<string>'}]
},
exit_plan: {
stop: {price: 123, basis: '<string>', premium: 123, premium_basis: '<string>'},
targets: [{level: 123, basis: '<string>', pct: 123, action: '<string>', premium: 123}],
trail: {activation: '<string>', method: '<string>'},
time_stops: {no_progress_hours: 123, max_hold_days: 123, dte_floor: 123},
invalidations: [{trigger: '<string>', level: 123}]
},
position_sizing: {
risk_per_trade_pct: 123,
max_risk_dollars: 123,
premium: 123,
stop_loss_pct: 123,
risk_per_contract: 123,
max_contracts: 123,
suggested_contracts: 123,
allocation_pct: 123
},
risk_status: {
portfolio_heat_pct: 123,
max_heat_pct: 123,
open_positions: 123,
available_slots: 123,
daily_pnl_pct: 123,
weekly_pnl_pct: 123,
cleared_to_trade: true
}
})
};
fetch('https://api.example.com/api/graph/v1/action-cards/{card_id}/promote', 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/action-cards/{card_id}/promote",
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([
'contract' => [
'ticker' => '<string>',
'strike' => 123,
'expiration' => '<string>',
'dte' => 123,
'delta' => 123,
'bid' => 123,
'ask' => 123,
'mid' => 123,
'iv' => 123,
'spread_pct' => 123,
'oi' => 123,
'gamma' => 123,
'theta' => 123,
'vega' => 123,
'iv_percentile' => 123,
'volume' => 123
],
'quality' => [
'liquidity_grade' => '<string>',
'spread_grade' => '<string>',
'iv_grade' => '<string>',
'composite' => '<string>'
],
'entry' => [
'trigger_type' => '<string>',
'trigger_level' => 123,
'trigger_name' => '<string>',
'status' => 'pending',
'entry_window' => '<string>',
'timing_modifier' => '1.0',
'order_type' => 'limit',
'limit_price' => 123,
'scale_plan' => [
[
'contracts' => 123,
'trigger' => '<string>'
]
]
],
'exit_plan' => [
'stop' => [
'price' => 123,
'basis' => '<string>',
'premium' => 123,
'premium_basis' => '<string>'
],
'targets' => [
[
'level' => 123,
'basis' => '<string>',
'pct' => 123,
'action' => '<string>',
'premium' => 123
]
],
'trail' => [
'activation' => '<string>',
'method' => '<string>'
],
'time_stops' => [
'no_progress_hours' => 123,
'max_hold_days' => 123,
'dte_floor' => 123
],
'invalidations' => [
[
'trigger' => '<string>',
'level' => 123
]
]
],
'position_sizing' => [
'risk_per_trade_pct' => 123,
'max_risk_dollars' => 123,
'premium' => 123,
'stop_loss_pct' => 123,
'risk_per_contract' => 123,
'max_contracts' => 123,
'suggested_contracts' => 123,
'allocation_pct' => 123
],
'risk_status' => [
'portfolio_heat_pct' => 123,
'max_heat_pct' => 123,
'open_positions' => 123,
'available_slots' => 123,
'daily_pnl_pct' => 123,
'weekly_pnl_pct' => 123,
'cleared_to_trade' => true
]
]),
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/action-cards/{card_id}/promote"
payload := strings.NewReader("{\n \"contract\": {\n \"ticker\": \"<string>\",\n \"strike\": 123,\n \"expiration\": \"<string>\",\n \"dte\": 123,\n \"delta\": 123,\n \"bid\": 123,\n \"ask\": 123,\n \"mid\": 123,\n \"iv\": 123,\n \"spread_pct\": 123,\n \"oi\": 123,\n \"gamma\": 123,\n \"theta\": 123,\n \"vega\": 123,\n \"iv_percentile\": 123,\n \"volume\": 123\n },\n \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"entry\": {\n \"trigger_type\": \"<string>\",\n \"trigger_level\": 123,\n \"trigger_name\": \"<string>\",\n \"status\": \"pending\",\n \"entry_window\": \"<string>\",\n \"timing_modifier\": \"1.0\",\n \"order_type\": \"limit\",\n \"limit_price\": 123,\n \"scale_plan\": [\n {\n \"contracts\": 123,\n \"trigger\": \"<string>\"\n }\n ]\n },\n \"exit_plan\": {\n \"stop\": {\n \"price\": 123,\n \"basis\": \"<string>\",\n \"premium\": 123,\n \"premium_basis\": \"<string>\"\n },\n \"targets\": [\n {\n \"level\": 123,\n \"basis\": \"<string>\",\n \"pct\": 123,\n \"action\": \"<string>\",\n \"premium\": 123\n }\n ],\n \"trail\": {\n \"activation\": \"<string>\",\n \"method\": \"<string>\"\n },\n \"time_stops\": {\n \"no_progress_hours\": 123,\n \"max_hold_days\": 123,\n \"dte_floor\": 123\n },\n \"invalidations\": [\n {\n \"trigger\": \"<string>\",\n \"level\": 123\n }\n ]\n },\n \"position_sizing\": {\n \"risk_per_trade_pct\": 123,\n \"max_risk_dollars\": 123,\n \"premium\": 123,\n \"stop_loss_pct\": 123,\n \"risk_per_contract\": 123,\n \"max_contracts\": 123,\n \"suggested_contracts\": 123,\n \"allocation_pct\": 123\n },\n \"risk_status\": {\n \"portfolio_heat_pct\": 123,\n \"max_heat_pct\": 123,\n \"open_positions\": 123,\n \"available_slots\": 123,\n \"daily_pnl_pct\": 123,\n \"weekly_pnl_pct\": 123,\n \"cleared_to_trade\": true\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/action-cards/{card_id}/promote")
.header("Content-Type", "application/json")
.body("{\n \"contract\": {\n \"ticker\": \"<string>\",\n \"strike\": 123,\n \"expiration\": \"<string>\",\n \"dte\": 123,\n \"delta\": 123,\n \"bid\": 123,\n \"ask\": 123,\n \"mid\": 123,\n \"iv\": 123,\n \"spread_pct\": 123,\n \"oi\": 123,\n \"gamma\": 123,\n \"theta\": 123,\n \"vega\": 123,\n \"iv_percentile\": 123,\n \"volume\": 123\n },\n \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"entry\": {\n \"trigger_type\": \"<string>\",\n \"trigger_level\": 123,\n \"trigger_name\": \"<string>\",\n \"status\": \"pending\",\n \"entry_window\": \"<string>\",\n \"timing_modifier\": \"1.0\",\n \"order_type\": \"limit\",\n \"limit_price\": 123,\n \"scale_plan\": [\n {\n \"contracts\": 123,\n \"trigger\": \"<string>\"\n }\n ]\n },\n \"exit_plan\": {\n \"stop\": {\n \"price\": 123,\n \"basis\": \"<string>\",\n \"premium\": 123,\n \"premium_basis\": \"<string>\"\n },\n \"targets\": [\n {\n \"level\": 123,\n \"basis\": \"<string>\",\n \"pct\": 123,\n \"action\": \"<string>\",\n \"premium\": 123\n }\n ],\n \"trail\": {\n \"activation\": \"<string>\",\n \"method\": \"<string>\"\n },\n \"time_stops\": {\n \"no_progress_hours\": 123,\n \"max_hold_days\": 123,\n \"dte_floor\": 123\n },\n \"invalidations\": [\n {\n \"trigger\": \"<string>\",\n \"level\": 123\n }\n ]\n },\n \"position_sizing\": {\n \"risk_per_trade_pct\": 123,\n \"max_risk_dollars\": 123,\n \"premium\": 123,\n \"stop_loss_pct\": 123,\n \"risk_per_contract\": 123,\n \"max_contracts\": 123,\n \"suggested_contracts\": 123,\n \"allocation_pct\": 123\n },\n \"risk_status\": {\n \"portfolio_heat_pct\": 123,\n \"max_heat_pct\": 123,\n \"open_positions\": 123,\n \"available_slots\": 123,\n \"daily_pnl_pct\": 123,\n \"weekly_pnl_pct\": 123,\n \"cleared_to_trade\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/action-cards/{card_id}/promote")
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 \"contract\": {\n \"ticker\": \"<string>\",\n \"strike\": 123,\n \"expiration\": \"<string>\",\n \"dte\": 123,\n \"delta\": 123,\n \"bid\": 123,\n \"ask\": 123,\n \"mid\": 123,\n \"iv\": 123,\n \"spread_pct\": 123,\n \"oi\": 123,\n \"gamma\": 123,\n \"theta\": 123,\n \"vega\": 123,\n \"iv_percentile\": 123,\n \"volume\": 123\n },\n \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"entry\": {\n \"trigger_type\": \"<string>\",\n \"trigger_level\": 123,\n \"trigger_name\": \"<string>\",\n \"status\": \"pending\",\n \"entry_window\": \"<string>\",\n \"timing_modifier\": \"1.0\",\n \"order_type\": \"limit\",\n \"limit_price\": 123,\n \"scale_plan\": [\n {\n \"contracts\": 123,\n \"trigger\": \"<string>\"\n }\n ]\n },\n \"exit_plan\": {\n \"stop\": {\n \"price\": 123,\n \"basis\": \"<string>\",\n \"premium\": 123,\n \"premium_basis\": \"<string>\"\n },\n \"targets\": [\n {\n \"level\": 123,\n \"basis\": \"<string>\",\n \"pct\": 123,\n \"action\": \"<string>\",\n \"premium\": 123\n }\n ],\n \"trail\": {\n \"activation\": \"<string>\",\n \"method\": \"<string>\"\n },\n \"time_stops\": {\n \"no_progress_hours\": 123,\n \"max_hold_days\": 123,\n \"dte_floor\": 123\n },\n \"invalidations\": [\n {\n \"trigger\": \"<string>\",\n \"level\": 123\n }\n ]\n },\n \"position_sizing\": {\n \"risk_per_trade_pct\": 123,\n \"max_risk_dollars\": 123,\n \"premium\": 123,\n \"stop_loss_pct\": 123,\n \"risk_per_contract\": 123,\n \"max_contracts\": 123,\n \"suggested_contracts\": 123,\n \"allocation_pct\": 123\n },\n \"risk_status\": {\n \"portfolio_heat_pct\": 123,\n \"max_heat_pct\": 123,\n \"open_positions\": 123,\n \"available_slots\": 123,\n \"daily_pnl_pct\": 123,\n \"weekly_pnl_pct\": 123,\n \"cleared_to_trade\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"direction_bias": "bull",
"run_meta": {
"date": "<string>",
"time": "<string>",
"account_value": "<string>",
"account_tier": "<string>",
"tz": "America/Chicago"
},
"regime": {
"classification": "<string>",
"confidence": "<string>",
"vix": "<string>",
"conditions_met": [
"<string>"
],
"conditions_failed": [
"<string>"
],
"vix_context": {
"current": "<string>",
"sma50": "<string>",
"percentile_252d": 123,
"term_structure": "<string>"
}
},
"day_type": {
"classification": "<string>",
"day_type_confidence": 50,
"trend_score": 50,
"rotation_score": 50,
"day_type_detail": "<string>",
"signals": [
"<string>"
],
"size_modifier": "1.0"
},
"institutional_levels": {
"vwap": "<string>",
"ib_high": "<string>",
"ib_low": "<string>",
"ib_range": "<string>",
"vwap_plus_1sd": "<string>",
"vwap_plus_2sd": "<string>",
"vwap_minus_1sd": "<string>",
"vwap_minus_2sd": "<string>",
"price_vs_vwap_sd": "<string>",
"ib_range_vs_atr": "<string>",
"ib_1_5x": "<string>",
"ib_2x": "<string>",
"prior_vah": "<string>",
"prior_val": "<string>",
"prior_poc": "<string>",
"dev_vah": "<string>",
"dev_val": "<string>",
"dev_poc": "<string>",
"pp": "<string>",
"r1": "<string>",
"r2": "<string>",
"r3": "<string>",
"s1": "<string>",
"s2": "<string>",
"s3": "<string>",
"pdh": "<string>",
"pdl": "<string>",
"pdc": "<string>",
"onh": "<string>",
"onl": "<string>"
},
"trend": {
"price": "<string>",
"ema20": "<string>",
"sma50": "<string>",
"stack_valid": true,
"sma200": "<string>",
"dist_to_ema20_atr": "<string>"
},
"volume": {
"rvol": "<string>",
"trend": "<string>",
"breakout_node": "<string>"
},
"confluence": {
"confluence_score": "<string>",
"tier": "<string>",
"recommendation": "<string>",
"weights_version": "3.0.0",
"components": {}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thesis": "<string>",
"pattern": {
"confidence": 50,
"detected": "<string>",
"institutional_bonus": 0,
"vcp_metrics": {
"atr_compression_ratio": "<string>",
"range_vs_atr_14": "<string>",
"range_compression_pct": "<string>"
}
},
"contract": {
"ticker": "<string>",
"strike": "<string>",
"expiration": "<string>",
"dte": 123,
"delta": "<string>",
"bid": "<string>",
"ask": "<string>",
"mid": "<string>",
"iv": "<string>",
"spread_pct": "<string>",
"oi": 123,
"gamma": "<string>",
"theta": "<string>",
"vega": "<string>",
"iv_percentile": 123,
"volume": 123
},
"position_sizing": {
"risk_per_trade_pct": "<string>",
"max_risk_dollars": "<string>",
"premium": "<string>",
"stop_loss_pct": "<string>",
"risk_per_contract": "<string>",
"max_contracts": "<string>",
"suggested_contracts": 123,
"allocation_pct": "<string>"
},
"entry": {
"trigger_type": "<string>",
"trigger_level": "<string>",
"trigger_name": "<string>",
"status": "pending",
"entry_window": "<string>",
"timing_modifier": "1.0",
"order_type": "limit",
"limit_price": "<string>",
"scale_plan": [
{
"contracts": 123,
"trigger": "<string>"
}
]
},
"exit_plan": {
"stop": {
"price": "<string>",
"basis": "<string>",
"premium": "<string>",
"premium_basis": "<string>"
},
"targets": [
{
"level": "<string>",
"basis": "<string>",
"pct": 123,
"action": "<string>",
"premium": "<string>"
}
],
"trail": {
"activation": "<string>",
"method": "<string>"
},
"time_stops": {
"no_progress_hours": 123,
"max_hold_days": 123,
"dte_floor": 123
},
"invalidations": [
{
"trigger": "<string>",
"level": "<string>"
}
]
},
"risk_status": {
"portfolio_heat_pct": "<string>",
"max_heat_pct": "<string>",
"open_positions": 123,
"available_slots": 123,
"daily_pnl_pct": "<string>",
"weekly_pnl_pct": "<string>",
"cleared_to_trade": true
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"status": "draft",
"completeness": "signal_only",
"status_reason": "<string>",
"outcome": {
"executed_at": "2023-11-07T05:31:56Z",
"fill_price": "<string>",
"exit_price": "<string>",
"exit_time": "2023-11-07T05:31:56Z",
"pnl_dollars": "<string>",
"pnl_pct": "<string>",
"r_multiple": "<string>",
"exit_reason": "<string>",
"hold_days": 123,
"institutional_validation": {
"ib_target_hit": "<string>",
"vwap_held": true,
"prior_vah_held": true
}
},
"expires_at": "2023-11-07T05:31:56Z"
}Path Parameters
Body
Request to add sections and promote a draft action card.
Used to incrementally add Module B/C/D/E sections to a draft card. Completeness and status are recomputed based on sections present. Provided sections fully replace existing values; omitted sections are preserved.
v3: contract object - Module B Stage B output.
Show child attributes
Show child attributes
v3: quality object - contract quality grades.
Show child attributes
Show child attributes
v3: entry object - Module C output.
Show child attributes
Show child attributes
v3: exit_plan object - Module D output.
Show child attributes
Show child attributes
v3: position_sizing object - Module E output.
Show child attributes
Show child attributes
v3: risk_status object - Module E context at card creation.
Show child attributes
Show child attributes
Response
Action card promoted
Complete action card aligned with v3 spec (lines 1625-1931).
Trade direction bias.
bull, bear v3: run_meta object - scan execution context.
Show child attributes
Show child attributes
v3: regime object - Module A market regime output.
Show child attributes
Show child attributes
v3: day_type object - Module A day classification.
Show child attributes
Show child attributes
v3: institutional_levels object - key price levels.
Show child attributes
Show child attributes
v3: trend object - MA stack and trend context.
Show child attributes
Show child attributes
v3: volume object - volume confirmation.
Show child attributes
Show child attributes
v3: confluence object - weighted scoring output.
Show child attributes
Show child attributes
v3: pattern object - detected chart pattern.
Show child attributes
Show child attributes
v3: contract object - Module B Stage B output.
Show child attributes
Show child attributes
v3: position_sizing object - Module E output.
Show child attributes
Show child attributes
v3: entry object - Module C output.
Show child attributes
Show child attributes
v3: exit_plan object - Module D output.
Show child attributes
Show child attributes
v3: risk_status object - Module E context at card creation.
Show child attributes
Show child attributes
v3: quality object - contract quality grades.
Show child attributes
Show child attributes
Action card lifecycle status.
draft, active, executed, expired, dismissed, invalidated Action card completeness level based on module outputs present.
signal_only, with_contract, actionable v3: outcome object - post-trade tracking.
Show child attributes
Show child attributes