curl --request GET \
--url https://api.example.com/api/graph/v1/market/contextimport requests
url = "https://api.example.com/api/graph/v1/market/context"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/graph/v1/market/context', 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/market/context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/graph/v1/market/context"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/graph/v1/market/context")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/market/context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"day_classification": {
"day_type": "trending",
"day_type_confidence": 70,
"day_type_detail": "trending",
"rotation_score": 25,
"signals": [
"narrow_cpr",
"narrow_ib",
"gap_and_go"
],
"size_modifier": 1,
"strategy_bias": "breakout_continuation",
"trend_score": 72
},
"favored_strategies": [
"MomentumBreakout",
"TrendFollowing",
"OpeningRangeBreakout"
],
"is_market_open": true,
"market_conditions": [
"LOW_VIX",
"CONTANGO",
"BULLISH_BREADTH"
],
"trade_date": "2025-12-20",
"vix_regime": {
"can_trade": true,
"level": 16.5,
"percentile": 35,
"regime": "normal",
"size_adjustment": "baseline",
"sma_50": 18.2,
"term_structure": "contango"
}
}Get current market context
curl --request GET \
--url https://api.example.com/api/graph/v1/market/contextimport requests
url = "https://api.example.com/api/graph/v1/market/context"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/graph/v1/market/context', 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/market/context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/graph/v1/market/context"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/graph/v1/market/context")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/market/context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"day_classification": {
"day_type": "trending",
"day_type_confidence": 70,
"day_type_detail": "trending",
"rotation_score": 25,
"signals": [
"narrow_cpr",
"narrow_ib",
"gap_and_go"
],
"size_modifier": 1,
"strategy_bias": "breakout_continuation",
"trend_score": 72
},
"favored_strategies": [
"MomentumBreakout",
"TrendFollowing",
"OpeningRangeBreakout"
],
"is_market_open": true,
"market_conditions": [
"LOW_VIX",
"CONTANGO",
"BULLISH_BREADTH"
],
"trade_date": "2025-12-20",
"vix_regime": {
"can_trade": true,
"level": 16.5,
"percentile": 35,
"regime": "normal",
"size_adjustment": "baseline",
"sma_50": 18.2,
"term_structure": "contango"
}
}Response
Market context
Market-wide context for informed trading decisions.
Combines data from:
- DayClassification vertex (daily market type)
- MarketCondition vertex (VIX, breadth, term structure)
- Alpaca trading calendar (market hours / holiday awareness)
Trading date in YYYY-MM-DD format
Daily market classification from DayClassification vertex.
Show child attributes
Show child attributes
VIX-related context from MarketCondition vertex.
Show child attributes
Show child attributes
Whether the US stock market is currently open (holiday and early-close aware)
Active market condition flags (e.g., 'LOW_VIX', 'BULLISH_BREADTH')
Strategy types favored in current conditions
V5 regime dominant state (e.g., STRONG_TREND, ROTATIONAL)
Full V5 regime probability vector (6-state with confidence)
Show child attributes
Show child attributes
Regime direction: BULL, SIDEWAYS, or BEAR
Regime volatility: HIGH or LOW
Human-readable regime label (e.g., 'Steady Uptrend')
Consecutive days in current regime
Whether a transient shock override is active
0-100 percentile of 50d OLS slope
0-100 percentile of 20d Parkinson vol
Annualized % OLS slope
Annualized % Parkinson vol
SPY return (%) since regime start
QQQ return (%) since regime start