curl --request POST \
--url https://api.example.com/api/graph/v1/action-cards \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "<string>",
"run_meta": {
"date": "<string>",
"time": "<string>",
"account_value": 123,
"account_tier": "<string>",
"tz": "America/Chicago"
},
"regime": {
"classification": "<string>",
"confidence": 0.5,
"vix": 123,
"conditions_met": [
"<string>"
],
"conditions_failed": [
"<string>"
],
"vix_context": {
"current": 123,
"sma50": 123,
"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": 123,
"ib_high": 123,
"ib_low": 123,
"ib_range": 123,
"vwap_plus_1sd": 123,
"vwap_plus_2sd": 123,
"vwap_minus_1sd": 123,
"vwap_minus_2sd": 123,
"price_vs_vwap_sd": 123,
"ib_range_vs_atr": 123,
"ib_1_5x": 123,
"ib_2x": 123,
"prior_vah": 123,
"prior_val": 123,
"prior_poc": 123,
"dev_vah": 123,
"dev_val": 123,
"dev_poc": 123,
"pp": 123,
"r1": 123,
"r2": 123,
"r3": 123,
"s1": 123,
"s2": 123,
"s3": 123,
"pdh": 123,
"pdl": 123,
"pdc": 123,
"onh": 123,
"onl": 123
},
"trend": {
"price": 123,
"ema20": 123,
"sma50": 123,
"stack_valid": true,
"sma200": 123,
"dist_to_ema20_atr": 123
},
"volume": {
"rvol": 123,
"trend": "<string>",
"breakout_node": "<string>"
},
"confluence": {
"confluence_score": 50,
"tier": "<string>",
"recommendation": "<string>",
"weights_version": "3.0.0",
"components": {}
},
"thesis": "<string>",
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pattern": {
"confidence": 50,
"detected": "<string>",
"institutional_bonus": 0,
"vcp_metrics": {
"atr_compression_ratio": 123,
"range_vs_atr_14": 123,
"range_compression_pct": 123
}
},
"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
},
"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
},
"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
}
]
},
"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
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"expires_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.example.com/api/graph/v1/action-cards"
payload = {
"symbol": "<string>",
"run_meta": {
"date": "<string>",
"time": "<string>",
"account_value": 123,
"account_tier": "<string>",
"tz": "America/Chicago"
},
"regime": {
"classification": "<string>",
"confidence": 0.5,
"vix": 123,
"conditions_met": ["<string>"],
"conditions_failed": ["<string>"],
"vix_context": {
"current": 123,
"sma50": 123,
"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": 123,
"ib_high": 123,
"ib_low": 123,
"ib_range": 123,
"vwap_plus_1sd": 123,
"vwap_plus_2sd": 123,
"vwap_minus_1sd": 123,
"vwap_minus_2sd": 123,
"price_vs_vwap_sd": 123,
"ib_range_vs_atr": 123,
"ib_1_5x": 123,
"ib_2x": 123,
"prior_vah": 123,
"prior_val": 123,
"prior_poc": 123,
"dev_vah": 123,
"dev_val": 123,
"dev_poc": 123,
"pp": 123,
"r1": 123,
"r2": 123,
"r3": 123,
"s1": 123,
"s2": 123,
"s3": 123,
"pdh": 123,
"pdl": 123,
"pdc": 123,
"onh": 123,
"onl": 123
},
"trend": {
"price": 123,
"ema20": 123,
"sma50": 123,
"stack_valid": True,
"sma200": 123,
"dist_to_ema20_atr": 123
},
"volume": {
"rvol": 123,
"trend": "<string>",
"breakout_node": "<string>"
},
"confluence": {
"confluence_score": 50,
"tier": "<string>",
"recommendation": "<string>",
"weights_version": "3.0.0",
"components": {}
},
"thesis": "<string>",
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pattern": {
"confidence": 50,
"detected": "<string>",
"institutional_bonus": 0,
"vcp_metrics": {
"atr_compression_ratio": 123,
"range_vs_atr_14": 123,
"range_compression_pct": 123
}
},
"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
},
"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
},
"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
}
]
},
"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
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"expires_at": "2023-11-07T05:31:56Z"
}
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>',
run_meta: {
date: '<string>',
time: '<string>',
account_value: 123,
account_tier: '<string>',
tz: 'America/Chicago'
},
regime: {
classification: '<string>',
confidence: 0.5,
vix: 123,
conditions_met: ['<string>'],
conditions_failed: ['<string>'],
vix_context: {current: 123, sma50: 123, 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: 123,
ib_high: 123,
ib_low: 123,
ib_range: 123,
vwap_plus_1sd: 123,
vwap_plus_2sd: 123,
vwap_minus_1sd: 123,
vwap_minus_2sd: 123,
price_vs_vwap_sd: 123,
ib_range_vs_atr: 123,
ib_1_5x: 123,
ib_2x: 123,
prior_vah: 123,
prior_val: 123,
prior_poc: 123,
dev_vah: 123,
dev_val: 123,
dev_poc: 123,
pp: 123,
r1: 123,
r2: 123,
r3: 123,
s1: 123,
s2: 123,
s3: 123,
pdh: 123,
pdl: 123,
pdc: 123,
onh: 123,
onl: 123
},
trend: {
price: 123,
ema20: 123,
sma50: 123,
stack_valid: true,
sma200: 123,
dist_to_ema20_atr: 123
},
volume: {rvol: 123, trend: '<string>', breakout_node: '<string>'},
confluence: {
confluence_score: 50,
tier: '<string>',
recommendation: '<string>',
weights_version: '3.0.0',
components: {}
},
thesis: '<string>',
scan_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
pattern: {
confidence: 50,
detected: '<string>',
institutional_bonus: 0,
vcp_metrics: {atr_compression_ratio: 123, range_vs_atr_14: 123, range_compression_pct: 123}
},
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
},
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
},
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}]
},
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
},
quality: {
liquidity_grade: '<string>',
spread_grade: '<string>',
iv_grade: '<string>',
composite: '<string>'
},
expires_at: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.example.com/api/graph/v1/action-cards', 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",
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>',
'run_meta' => [
'date' => '<string>',
'time' => '<string>',
'account_value' => 123,
'account_tier' => '<string>',
'tz' => 'America/Chicago'
],
'regime' => [
'classification' => '<string>',
'confidence' => 0.5,
'vix' => 123,
'conditions_met' => [
'<string>'
],
'conditions_failed' => [
'<string>'
],
'vix_context' => [
'current' => 123,
'sma50' => 123,
'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' => 123,
'ib_high' => 123,
'ib_low' => 123,
'ib_range' => 123,
'vwap_plus_1sd' => 123,
'vwap_plus_2sd' => 123,
'vwap_minus_1sd' => 123,
'vwap_minus_2sd' => 123,
'price_vs_vwap_sd' => 123,
'ib_range_vs_atr' => 123,
'ib_1_5x' => 123,
'ib_2x' => 123,
'prior_vah' => 123,
'prior_val' => 123,
'prior_poc' => 123,
'dev_vah' => 123,
'dev_val' => 123,
'dev_poc' => 123,
'pp' => 123,
'r1' => 123,
'r2' => 123,
'r3' => 123,
's1' => 123,
's2' => 123,
's3' => 123,
'pdh' => 123,
'pdl' => 123,
'pdc' => 123,
'onh' => 123,
'onl' => 123
],
'trend' => [
'price' => 123,
'ema20' => 123,
'sma50' => 123,
'stack_valid' => true,
'sma200' => 123,
'dist_to_ema20_atr' => 123
],
'volume' => [
'rvol' => 123,
'trend' => '<string>',
'breakout_node' => '<string>'
],
'confluence' => [
'confluence_score' => 50,
'tier' => '<string>',
'recommendation' => '<string>',
'weights_version' => '3.0.0',
'components' => [
]
],
'thesis' => '<string>',
'scan_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'pattern' => [
'confidence' => 50,
'detected' => '<string>',
'institutional_bonus' => 0,
'vcp_metrics' => [
'atr_compression_ratio' => 123,
'range_vs_atr_14' => 123,
'range_compression_pct' => 123
]
],
'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
],
'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
],
'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
]
]
],
'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
],
'quality' => [
'liquidity_grade' => '<string>',
'spread_grade' => '<string>',
'iv_grade' => '<string>',
'composite' => '<string>'
],
'expires_at' => '2023-11-07T05:31:56Z'
]),
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"
payload := strings.NewReader("{\n \"symbol\": \"<string>\",\n \"run_meta\": {\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"account_value\": 123,\n \"account_tier\": \"<string>\",\n \"tz\": \"America/Chicago\"\n },\n \"regime\": {\n \"classification\": \"<string>\",\n \"confidence\": 0.5,\n \"vix\": 123,\n \"conditions_met\": [\n \"<string>\"\n ],\n \"conditions_failed\": [\n \"<string>\"\n ],\n \"vix_context\": {\n \"current\": 123,\n \"sma50\": 123,\n \"percentile_252d\": 123,\n \"term_structure\": \"<string>\"\n }\n },\n \"day_type\": {\n \"classification\": \"<string>\",\n \"day_type_confidence\": 50,\n \"trend_score\": 50,\n \"rotation_score\": 50,\n \"day_type_detail\": \"<string>\",\n \"signals\": [\n \"<string>\"\n ],\n \"size_modifier\": \"1.0\"\n },\n \"institutional_levels\": {\n \"vwap\": 123,\n \"ib_high\": 123,\n \"ib_low\": 123,\n \"ib_range\": 123,\n \"vwap_plus_1sd\": 123,\n \"vwap_plus_2sd\": 123,\n \"vwap_minus_1sd\": 123,\n \"vwap_minus_2sd\": 123,\n \"price_vs_vwap_sd\": 123,\n \"ib_range_vs_atr\": 123,\n \"ib_1_5x\": 123,\n \"ib_2x\": 123,\n \"prior_vah\": 123,\n \"prior_val\": 123,\n \"prior_poc\": 123,\n \"dev_vah\": 123,\n \"dev_val\": 123,\n \"dev_poc\": 123,\n \"pp\": 123,\n \"r1\": 123,\n \"r2\": 123,\n \"r3\": 123,\n \"s1\": 123,\n \"s2\": 123,\n \"s3\": 123,\n \"pdh\": 123,\n \"pdl\": 123,\n \"pdc\": 123,\n \"onh\": 123,\n \"onl\": 123\n },\n \"trend\": {\n \"price\": 123,\n \"ema20\": 123,\n \"sma50\": 123,\n \"stack_valid\": true,\n \"sma200\": 123,\n \"dist_to_ema20_atr\": 123\n },\n \"volume\": {\n \"rvol\": 123,\n \"trend\": \"<string>\",\n \"breakout_node\": \"<string>\"\n },\n \"confluence\": {\n \"confluence_score\": 50,\n \"tier\": \"<string>\",\n \"recommendation\": \"<string>\",\n \"weights_version\": \"3.0.0\",\n \"components\": {}\n },\n \"thesis\": \"<string>\",\n \"scan_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": {\n \"confidence\": 50,\n \"detected\": \"<string>\",\n \"institutional_bonus\": 0,\n \"vcp_metrics\": {\n \"atr_compression_ratio\": 123,\n \"range_vs_atr_14\": 123,\n \"range_compression_pct\": 123\n }\n },\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 \"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 \"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 \"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 \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"expires_at\": \"2023-11-07T05:31:56Z\"\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/action-cards")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"<string>\",\n \"run_meta\": {\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"account_value\": 123,\n \"account_tier\": \"<string>\",\n \"tz\": \"America/Chicago\"\n },\n \"regime\": {\n \"classification\": \"<string>\",\n \"confidence\": 0.5,\n \"vix\": 123,\n \"conditions_met\": [\n \"<string>\"\n ],\n \"conditions_failed\": [\n \"<string>\"\n ],\n \"vix_context\": {\n \"current\": 123,\n \"sma50\": 123,\n \"percentile_252d\": 123,\n \"term_structure\": \"<string>\"\n }\n },\n \"day_type\": {\n \"classification\": \"<string>\",\n \"day_type_confidence\": 50,\n \"trend_score\": 50,\n \"rotation_score\": 50,\n \"day_type_detail\": \"<string>\",\n \"signals\": [\n \"<string>\"\n ],\n \"size_modifier\": \"1.0\"\n },\n \"institutional_levels\": {\n \"vwap\": 123,\n \"ib_high\": 123,\n \"ib_low\": 123,\n \"ib_range\": 123,\n \"vwap_plus_1sd\": 123,\n \"vwap_plus_2sd\": 123,\n \"vwap_minus_1sd\": 123,\n \"vwap_minus_2sd\": 123,\n \"price_vs_vwap_sd\": 123,\n \"ib_range_vs_atr\": 123,\n \"ib_1_5x\": 123,\n \"ib_2x\": 123,\n \"prior_vah\": 123,\n \"prior_val\": 123,\n \"prior_poc\": 123,\n \"dev_vah\": 123,\n \"dev_val\": 123,\n \"dev_poc\": 123,\n \"pp\": 123,\n \"r1\": 123,\n \"r2\": 123,\n \"r3\": 123,\n \"s1\": 123,\n \"s2\": 123,\n \"s3\": 123,\n \"pdh\": 123,\n \"pdl\": 123,\n \"pdc\": 123,\n \"onh\": 123,\n \"onl\": 123\n },\n \"trend\": {\n \"price\": 123,\n \"ema20\": 123,\n \"sma50\": 123,\n \"stack_valid\": true,\n \"sma200\": 123,\n \"dist_to_ema20_atr\": 123\n },\n \"volume\": {\n \"rvol\": 123,\n \"trend\": \"<string>\",\n \"breakout_node\": \"<string>\"\n },\n \"confluence\": {\n \"confluence_score\": 50,\n \"tier\": \"<string>\",\n \"recommendation\": \"<string>\",\n \"weights_version\": \"3.0.0\",\n \"components\": {}\n },\n \"thesis\": \"<string>\",\n \"scan_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": {\n \"confidence\": 50,\n \"detected\": \"<string>\",\n \"institutional_bonus\": 0,\n \"vcp_metrics\": {\n \"atr_compression_ratio\": 123,\n \"range_vs_atr_14\": 123,\n \"range_compression_pct\": 123\n }\n },\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 \"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 \"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 \"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 \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"expires_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/action-cards")
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 \"run_meta\": {\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"account_value\": 123,\n \"account_tier\": \"<string>\",\n \"tz\": \"America/Chicago\"\n },\n \"regime\": {\n \"classification\": \"<string>\",\n \"confidence\": 0.5,\n \"vix\": 123,\n \"conditions_met\": [\n \"<string>\"\n ],\n \"conditions_failed\": [\n \"<string>\"\n ],\n \"vix_context\": {\n \"current\": 123,\n \"sma50\": 123,\n \"percentile_252d\": 123,\n \"term_structure\": \"<string>\"\n }\n },\n \"day_type\": {\n \"classification\": \"<string>\",\n \"day_type_confidence\": 50,\n \"trend_score\": 50,\n \"rotation_score\": 50,\n \"day_type_detail\": \"<string>\",\n \"signals\": [\n \"<string>\"\n ],\n \"size_modifier\": \"1.0\"\n },\n \"institutional_levels\": {\n \"vwap\": 123,\n \"ib_high\": 123,\n \"ib_low\": 123,\n \"ib_range\": 123,\n \"vwap_plus_1sd\": 123,\n \"vwap_plus_2sd\": 123,\n \"vwap_minus_1sd\": 123,\n \"vwap_minus_2sd\": 123,\n \"price_vs_vwap_sd\": 123,\n \"ib_range_vs_atr\": 123,\n \"ib_1_5x\": 123,\n \"ib_2x\": 123,\n \"prior_vah\": 123,\n \"prior_val\": 123,\n \"prior_poc\": 123,\n \"dev_vah\": 123,\n \"dev_val\": 123,\n \"dev_poc\": 123,\n \"pp\": 123,\n \"r1\": 123,\n \"r2\": 123,\n \"r3\": 123,\n \"s1\": 123,\n \"s2\": 123,\n \"s3\": 123,\n \"pdh\": 123,\n \"pdl\": 123,\n \"pdc\": 123,\n \"onh\": 123,\n \"onl\": 123\n },\n \"trend\": {\n \"price\": 123,\n \"ema20\": 123,\n \"sma50\": 123,\n \"stack_valid\": true,\n \"sma200\": 123,\n \"dist_to_ema20_atr\": 123\n },\n \"volume\": {\n \"rvol\": 123,\n \"trend\": \"<string>\",\n \"breakout_node\": \"<string>\"\n },\n \"confluence\": {\n \"confluence_score\": 50,\n \"tier\": \"<string>\",\n \"recommendation\": \"<string>\",\n \"weights_version\": \"3.0.0\",\n \"components\": {}\n },\n \"thesis\": \"<string>\",\n \"scan_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": {\n \"confidence\": 50,\n \"detected\": \"<string>\",\n \"institutional_bonus\": 0,\n \"vcp_metrics\": {\n \"atr_compression_ratio\": 123,\n \"range_vs_atr_14\": 123,\n \"range_compression_pct\": 123\n }\n },\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 \"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 \"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 \"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 \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"expires_at\": \"2023-11-07T05:31:56Z\"\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"
}Create action card
curl --request POST \
--url https://api.example.com/api/graph/v1/action-cards \
--header 'Content-Type: application/json' \
--data '
{
"symbol": "<string>",
"run_meta": {
"date": "<string>",
"time": "<string>",
"account_value": 123,
"account_tier": "<string>",
"tz": "America/Chicago"
},
"regime": {
"classification": "<string>",
"confidence": 0.5,
"vix": 123,
"conditions_met": [
"<string>"
],
"conditions_failed": [
"<string>"
],
"vix_context": {
"current": 123,
"sma50": 123,
"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": 123,
"ib_high": 123,
"ib_low": 123,
"ib_range": 123,
"vwap_plus_1sd": 123,
"vwap_plus_2sd": 123,
"vwap_minus_1sd": 123,
"vwap_minus_2sd": 123,
"price_vs_vwap_sd": 123,
"ib_range_vs_atr": 123,
"ib_1_5x": 123,
"ib_2x": 123,
"prior_vah": 123,
"prior_val": 123,
"prior_poc": 123,
"dev_vah": 123,
"dev_val": 123,
"dev_poc": 123,
"pp": 123,
"r1": 123,
"r2": 123,
"r3": 123,
"s1": 123,
"s2": 123,
"s3": 123,
"pdh": 123,
"pdl": 123,
"pdc": 123,
"onh": 123,
"onl": 123
},
"trend": {
"price": 123,
"ema20": 123,
"sma50": 123,
"stack_valid": true,
"sma200": 123,
"dist_to_ema20_atr": 123
},
"volume": {
"rvol": 123,
"trend": "<string>",
"breakout_node": "<string>"
},
"confluence": {
"confluence_score": 50,
"tier": "<string>",
"recommendation": "<string>",
"weights_version": "3.0.0",
"components": {}
},
"thesis": "<string>",
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pattern": {
"confidence": 50,
"detected": "<string>",
"institutional_bonus": 0,
"vcp_metrics": {
"atr_compression_ratio": 123,
"range_vs_atr_14": 123,
"range_compression_pct": 123
}
},
"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
},
"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
},
"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
}
]
},
"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
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"expires_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.example.com/api/graph/v1/action-cards"
payload = {
"symbol": "<string>",
"run_meta": {
"date": "<string>",
"time": "<string>",
"account_value": 123,
"account_tier": "<string>",
"tz": "America/Chicago"
},
"regime": {
"classification": "<string>",
"confidence": 0.5,
"vix": 123,
"conditions_met": ["<string>"],
"conditions_failed": ["<string>"],
"vix_context": {
"current": 123,
"sma50": 123,
"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": 123,
"ib_high": 123,
"ib_low": 123,
"ib_range": 123,
"vwap_plus_1sd": 123,
"vwap_plus_2sd": 123,
"vwap_minus_1sd": 123,
"vwap_minus_2sd": 123,
"price_vs_vwap_sd": 123,
"ib_range_vs_atr": 123,
"ib_1_5x": 123,
"ib_2x": 123,
"prior_vah": 123,
"prior_val": 123,
"prior_poc": 123,
"dev_vah": 123,
"dev_val": 123,
"dev_poc": 123,
"pp": 123,
"r1": 123,
"r2": 123,
"r3": 123,
"s1": 123,
"s2": 123,
"s3": 123,
"pdh": 123,
"pdl": 123,
"pdc": 123,
"onh": 123,
"onl": 123
},
"trend": {
"price": 123,
"ema20": 123,
"sma50": 123,
"stack_valid": True,
"sma200": 123,
"dist_to_ema20_atr": 123
},
"volume": {
"rvol": 123,
"trend": "<string>",
"breakout_node": "<string>"
},
"confluence": {
"confluence_score": 50,
"tier": "<string>",
"recommendation": "<string>",
"weights_version": "3.0.0",
"components": {}
},
"thesis": "<string>",
"scan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pattern": {
"confidence": 50,
"detected": "<string>",
"institutional_bonus": 0,
"vcp_metrics": {
"atr_compression_ratio": 123,
"range_vs_atr_14": 123,
"range_compression_pct": 123
}
},
"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
},
"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
},
"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
}
]
},
"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
},
"quality": {
"liquidity_grade": "<string>",
"spread_grade": "<string>",
"iv_grade": "<string>",
"composite": "<string>"
},
"expires_at": "2023-11-07T05:31:56Z"
}
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>',
run_meta: {
date: '<string>',
time: '<string>',
account_value: 123,
account_tier: '<string>',
tz: 'America/Chicago'
},
regime: {
classification: '<string>',
confidence: 0.5,
vix: 123,
conditions_met: ['<string>'],
conditions_failed: ['<string>'],
vix_context: {current: 123, sma50: 123, 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: 123,
ib_high: 123,
ib_low: 123,
ib_range: 123,
vwap_plus_1sd: 123,
vwap_plus_2sd: 123,
vwap_minus_1sd: 123,
vwap_minus_2sd: 123,
price_vs_vwap_sd: 123,
ib_range_vs_atr: 123,
ib_1_5x: 123,
ib_2x: 123,
prior_vah: 123,
prior_val: 123,
prior_poc: 123,
dev_vah: 123,
dev_val: 123,
dev_poc: 123,
pp: 123,
r1: 123,
r2: 123,
r3: 123,
s1: 123,
s2: 123,
s3: 123,
pdh: 123,
pdl: 123,
pdc: 123,
onh: 123,
onl: 123
},
trend: {
price: 123,
ema20: 123,
sma50: 123,
stack_valid: true,
sma200: 123,
dist_to_ema20_atr: 123
},
volume: {rvol: 123, trend: '<string>', breakout_node: '<string>'},
confluence: {
confluence_score: 50,
tier: '<string>',
recommendation: '<string>',
weights_version: '3.0.0',
components: {}
},
thesis: '<string>',
scan_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
pattern: {
confidence: 50,
detected: '<string>',
institutional_bonus: 0,
vcp_metrics: {atr_compression_ratio: 123, range_vs_atr_14: 123, range_compression_pct: 123}
},
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
},
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
},
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}]
},
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
},
quality: {
liquidity_grade: '<string>',
spread_grade: '<string>',
iv_grade: '<string>',
composite: '<string>'
},
expires_at: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.example.com/api/graph/v1/action-cards', 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",
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>',
'run_meta' => [
'date' => '<string>',
'time' => '<string>',
'account_value' => 123,
'account_tier' => '<string>',
'tz' => 'America/Chicago'
],
'regime' => [
'classification' => '<string>',
'confidence' => 0.5,
'vix' => 123,
'conditions_met' => [
'<string>'
],
'conditions_failed' => [
'<string>'
],
'vix_context' => [
'current' => 123,
'sma50' => 123,
'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' => 123,
'ib_high' => 123,
'ib_low' => 123,
'ib_range' => 123,
'vwap_plus_1sd' => 123,
'vwap_plus_2sd' => 123,
'vwap_minus_1sd' => 123,
'vwap_minus_2sd' => 123,
'price_vs_vwap_sd' => 123,
'ib_range_vs_atr' => 123,
'ib_1_5x' => 123,
'ib_2x' => 123,
'prior_vah' => 123,
'prior_val' => 123,
'prior_poc' => 123,
'dev_vah' => 123,
'dev_val' => 123,
'dev_poc' => 123,
'pp' => 123,
'r1' => 123,
'r2' => 123,
'r3' => 123,
's1' => 123,
's2' => 123,
's3' => 123,
'pdh' => 123,
'pdl' => 123,
'pdc' => 123,
'onh' => 123,
'onl' => 123
],
'trend' => [
'price' => 123,
'ema20' => 123,
'sma50' => 123,
'stack_valid' => true,
'sma200' => 123,
'dist_to_ema20_atr' => 123
],
'volume' => [
'rvol' => 123,
'trend' => '<string>',
'breakout_node' => '<string>'
],
'confluence' => [
'confluence_score' => 50,
'tier' => '<string>',
'recommendation' => '<string>',
'weights_version' => '3.0.0',
'components' => [
]
],
'thesis' => '<string>',
'scan_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'pattern' => [
'confidence' => 50,
'detected' => '<string>',
'institutional_bonus' => 0,
'vcp_metrics' => [
'atr_compression_ratio' => 123,
'range_vs_atr_14' => 123,
'range_compression_pct' => 123
]
],
'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
],
'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
],
'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
]
]
],
'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
],
'quality' => [
'liquidity_grade' => '<string>',
'spread_grade' => '<string>',
'iv_grade' => '<string>',
'composite' => '<string>'
],
'expires_at' => '2023-11-07T05:31:56Z'
]),
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"
payload := strings.NewReader("{\n \"symbol\": \"<string>\",\n \"run_meta\": {\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"account_value\": 123,\n \"account_tier\": \"<string>\",\n \"tz\": \"America/Chicago\"\n },\n \"regime\": {\n \"classification\": \"<string>\",\n \"confidence\": 0.5,\n \"vix\": 123,\n \"conditions_met\": [\n \"<string>\"\n ],\n \"conditions_failed\": [\n \"<string>\"\n ],\n \"vix_context\": {\n \"current\": 123,\n \"sma50\": 123,\n \"percentile_252d\": 123,\n \"term_structure\": \"<string>\"\n }\n },\n \"day_type\": {\n \"classification\": \"<string>\",\n \"day_type_confidence\": 50,\n \"trend_score\": 50,\n \"rotation_score\": 50,\n \"day_type_detail\": \"<string>\",\n \"signals\": [\n \"<string>\"\n ],\n \"size_modifier\": \"1.0\"\n },\n \"institutional_levels\": {\n \"vwap\": 123,\n \"ib_high\": 123,\n \"ib_low\": 123,\n \"ib_range\": 123,\n \"vwap_plus_1sd\": 123,\n \"vwap_plus_2sd\": 123,\n \"vwap_minus_1sd\": 123,\n \"vwap_minus_2sd\": 123,\n \"price_vs_vwap_sd\": 123,\n \"ib_range_vs_atr\": 123,\n \"ib_1_5x\": 123,\n \"ib_2x\": 123,\n \"prior_vah\": 123,\n \"prior_val\": 123,\n \"prior_poc\": 123,\n \"dev_vah\": 123,\n \"dev_val\": 123,\n \"dev_poc\": 123,\n \"pp\": 123,\n \"r1\": 123,\n \"r2\": 123,\n \"r3\": 123,\n \"s1\": 123,\n \"s2\": 123,\n \"s3\": 123,\n \"pdh\": 123,\n \"pdl\": 123,\n \"pdc\": 123,\n \"onh\": 123,\n \"onl\": 123\n },\n \"trend\": {\n \"price\": 123,\n \"ema20\": 123,\n \"sma50\": 123,\n \"stack_valid\": true,\n \"sma200\": 123,\n \"dist_to_ema20_atr\": 123\n },\n \"volume\": {\n \"rvol\": 123,\n \"trend\": \"<string>\",\n \"breakout_node\": \"<string>\"\n },\n \"confluence\": {\n \"confluence_score\": 50,\n \"tier\": \"<string>\",\n \"recommendation\": \"<string>\",\n \"weights_version\": \"3.0.0\",\n \"components\": {}\n },\n \"thesis\": \"<string>\",\n \"scan_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": {\n \"confidence\": 50,\n \"detected\": \"<string>\",\n \"institutional_bonus\": 0,\n \"vcp_metrics\": {\n \"atr_compression_ratio\": 123,\n \"range_vs_atr_14\": 123,\n \"range_compression_pct\": 123\n }\n },\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 \"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 \"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 \"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 \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"expires_at\": \"2023-11-07T05:31:56Z\"\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/action-cards")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"<string>\",\n \"run_meta\": {\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"account_value\": 123,\n \"account_tier\": \"<string>\",\n \"tz\": \"America/Chicago\"\n },\n \"regime\": {\n \"classification\": \"<string>\",\n \"confidence\": 0.5,\n \"vix\": 123,\n \"conditions_met\": [\n \"<string>\"\n ],\n \"conditions_failed\": [\n \"<string>\"\n ],\n \"vix_context\": {\n \"current\": 123,\n \"sma50\": 123,\n \"percentile_252d\": 123,\n \"term_structure\": \"<string>\"\n }\n },\n \"day_type\": {\n \"classification\": \"<string>\",\n \"day_type_confidence\": 50,\n \"trend_score\": 50,\n \"rotation_score\": 50,\n \"day_type_detail\": \"<string>\",\n \"signals\": [\n \"<string>\"\n ],\n \"size_modifier\": \"1.0\"\n },\n \"institutional_levels\": {\n \"vwap\": 123,\n \"ib_high\": 123,\n \"ib_low\": 123,\n \"ib_range\": 123,\n \"vwap_plus_1sd\": 123,\n \"vwap_plus_2sd\": 123,\n \"vwap_minus_1sd\": 123,\n \"vwap_minus_2sd\": 123,\n \"price_vs_vwap_sd\": 123,\n \"ib_range_vs_atr\": 123,\n \"ib_1_5x\": 123,\n \"ib_2x\": 123,\n \"prior_vah\": 123,\n \"prior_val\": 123,\n \"prior_poc\": 123,\n \"dev_vah\": 123,\n \"dev_val\": 123,\n \"dev_poc\": 123,\n \"pp\": 123,\n \"r1\": 123,\n \"r2\": 123,\n \"r3\": 123,\n \"s1\": 123,\n \"s2\": 123,\n \"s3\": 123,\n \"pdh\": 123,\n \"pdl\": 123,\n \"pdc\": 123,\n \"onh\": 123,\n \"onl\": 123\n },\n \"trend\": {\n \"price\": 123,\n \"ema20\": 123,\n \"sma50\": 123,\n \"stack_valid\": true,\n \"sma200\": 123,\n \"dist_to_ema20_atr\": 123\n },\n \"volume\": {\n \"rvol\": 123,\n \"trend\": \"<string>\",\n \"breakout_node\": \"<string>\"\n },\n \"confluence\": {\n \"confluence_score\": 50,\n \"tier\": \"<string>\",\n \"recommendation\": \"<string>\",\n \"weights_version\": \"3.0.0\",\n \"components\": {}\n },\n \"thesis\": \"<string>\",\n \"scan_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": {\n \"confidence\": 50,\n \"detected\": \"<string>\",\n \"institutional_bonus\": 0,\n \"vcp_metrics\": {\n \"atr_compression_ratio\": 123,\n \"range_vs_atr_14\": 123,\n \"range_compression_pct\": 123\n }\n },\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 \"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 \"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 \"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 \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"expires_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/action-cards")
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 \"run_meta\": {\n \"date\": \"<string>\",\n \"time\": \"<string>\",\n \"account_value\": 123,\n \"account_tier\": \"<string>\",\n \"tz\": \"America/Chicago\"\n },\n \"regime\": {\n \"classification\": \"<string>\",\n \"confidence\": 0.5,\n \"vix\": 123,\n \"conditions_met\": [\n \"<string>\"\n ],\n \"conditions_failed\": [\n \"<string>\"\n ],\n \"vix_context\": {\n \"current\": 123,\n \"sma50\": 123,\n \"percentile_252d\": 123,\n \"term_structure\": \"<string>\"\n }\n },\n \"day_type\": {\n \"classification\": \"<string>\",\n \"day_type_confidence\": 50,\n \"trend_score\": 50,\n \"rotation_score\": 50,\n \"day_type_detail\": \"<string>\",\n \"signals\": [\n \"<string>\"\n ],\n \"size_modifier\": \"1.0\"\n },\n \"institutional_levels\": {\n \"vwap\": 123,\n \"ib_high\": 123,\n \"ib_low\": 123,\n \"ib_range\": 123,\n \"vwap_plus_1sd\": 123,\n \"vwap_plus_2sd\": 123,\n \"vwap_minus_1sd\": 123,\n \"vwap_minus_2sd\": 123,\n \"price_vs_vwap_sd\": 123,\n \"ib_range_vs_atr\": 123,\n \"ib_1_5x\": 123,\n \"ib_2x\": 123,\n \"prior_vah\": 123,\n \"prior_val\": 123,\n \"prior_poc\": 123,\n \"dev_vah\": 123,\n \"dev_val\": 123,\n \"dev_poc\": 123,\n \"pp\": 123,\n \"r1\": 123,\n \"r2\": 123,\n \"r3\": 123,\n \"s1\": 123,\n \"s2\": 123,\n \"s3\": 123,\n \"pdh\": 123,\n \"pdl\": 123,\n \"pdc\": 123,\n \"onh\": 123,\n \"onl\": 123\n },\n \"trend\": {\n \"price\": 123,\n \"ema20\": 123,\n \"sma50\": 123,\n \"stack_valid\": true,\n \"sma200\": 123,\n \"dist_to_ema20_atr\": 123\n },\n \"volume\": {\n \"rvol\": 123,\n \"trend\": \"<string>\",\n \"breakout_node\": \"<string>\"\n },\n \"confluence\": {\n \"confluence_score\": 50,\n \"tier\": \"<string>\",\n \"recommendation\": \"<string>\",\n \"weights_version\": \"3.0.0\",\n \"components\": {}\n },\n \"thesis\": \"<string>\",\n \"scan_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": {\n \"confidence\": 50,\n \"detected\": \"<string>\",\n \"institutional_bonus\": 0,\n \"vcp_metrics\": {\n \"atr_compression_ratio\": 123,\n \"range_vs_atr_14\": 123,\n \"range_compression_pct\": 123\n }\n },\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 \"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 \"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 \"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 \"quality\": {\n \"liquidity_grade\": \"<string>\",\n \"spread_grade\": \"<string>\",\n \"iv_grade\": \"<string>\",\n \"composite\": \"<string>\"\n },\n \"expires_at\": \"2023-11-07T05:31:56Z\"\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"
}Body
Request to create a new action card.
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
Response
Action card created
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