Skip to content

GET /volatility-index/:symbol

Risk metrics and volatility analysis.

Cost: $0.02 USDC

Parameters

ParameterTypeRequiredDescription
symbolstringYesToken symbol
periodstringNo (default: 7d)Analysis period: 1d, 7d, 30d

Request

response = client.get("https://api.foursec.xyz/volatility-index/ETH")
data = response.json()

Response

{
  "symbol": "ETH",
  "period": "7d",
  "volatility_24h": 3.2,
  "volatility_7d": 5.8,
  "volatility_30d": 12.1,
  "risk_level": "medium",
  "risk_metrics": {
    "var_95_1d": 4.2,
    "var_99_1d": 6.8,
    "sharpe_ratio": 1.8,
    "max_drawdown_30d": 12.5,
    "beta_vs_btc": 0.85,
    "correlation_vs_btc": 0.92
  },
  "price_distribution": {
    "mean": 2450.00,
    "std_dev": 78.40,
    "skewness": -0.15,
    "kurtosis": 3.2
  },
  "sentiment": {
    "score": 0.72,
    "label": "bullish",
    "sources_analyzed": 150,
    "confidence": 0.85
  },
  "timestamp": "2026-07-04T15:30:00Z"
}

Response Fields

FieldTypeDescription
symbolstringToken symbol
volatility_24hfloat24h annualized volatility (%)
volatility_7dfloat7-day annualized volatility (%)
volatility_30dfloat30-day annualized volatility (%)
risk_levelstringlow, medium, high, extreme

Risk Metrics

FieldTypeDescription
var_95_1dfloatValue at Risk 95% confidence (1 day, %)
var_99_1dfloatValue at Risk 99% confidence (1 day, %)
sharpe_ratiofloatRisk-adjusted return (higher = better)
max_drawdown_30dfloatMax loss from peak in 30 days (%)
beta_vs_btcfloatPrice sensitivity vs BTC
correlation_vs_btcfloatPrice correlation vs BTC (-1 to 1)

Sentiment

FieldTypeDescription
scorefloatSentiment score (0 = bearish, 1 = bullish)
labelstringbullish, neutral, or bearish
sources_analyzedintNumber of data sources for sentiment
confidencefloatConfidence level (0-1)

Risk Level Interpretation

LevelVolatilityRecommendation
low< 3%Safe for large positions
medium3-8%Normal trading conditions
high8-15%Reduce position sizes
extreme> 15%Avoid or hedge aggressively

Released under the MIT License.