Skip to main content
Read a stock's risk statistics

Overview

This endpoint measures a US stock against a benchmark, SPY without one, over each lookback window you ask for. Each window carries raw and Blume-adjusted beta, Jensen’s alpha, correlation and R², volatility and downside deviation, the Sharpe, Sortino and Treynor ratios, tracking error and the information ratio, the largest drawdown with its peak and trough, and 95% historical value at risk and expected shortfall. Returns are price returns of split-consistent daily closes, sampled daily, weekly or monthly. The risk-free rate is the window’s average 3-month Treasury par yield. A window with too few returns answers null statistics and says why.

Example

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

ticker
string
required

The US stock or fund, in any case.

Maximum string length: 12
Pattern: ^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$
benchmark
string
default:SPY

The stored US stock or fund to measure against; SPY without it.

Maximum string length: 12
Pattern: ^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$
lookback
string

Comma-separated windows from 6m, 1y, 2y, 3y, 5y and 10y, each ending on the newest close; 1y,3y,5y without it.

Maximum string length: 30
Pattern: ^(6m|1y|2y|3y|5y|10y)(,(6m|1y|2y|3y|5y|10y)){0,5}$
interval
enum<string>
default:day

The sampling of returns: day, week or month; day without it.

Available options:
day,
week,
month
end_date
string<date>

The last day the windows may reach; today without it.

Maximum string length: 10

Response

Read a stock's risk statistics: one page.

The answer of GET /prices/risk.

ticker
string
required

The stock measured.

Pattern: ^[A-Z0-9][A-Z0-9.-]{0,11}$
Example:

"AAPL"

benchmark
string
required

The benchmark measured against.

Pattern: ^[A-Z0-9][A-Z0-9.-]{0,11}$
Example:

"SPY"

interval
enum<string>
required

The sampling of returns in every window.

Available options:
day,
week,
month
Example:

"day"

as_of_date
string<date>
required

The stock's newest close, where every window ends.

Maximum string length: 10
Example:

"2026-11-27"

risk_statistics
object[]
required

One row per lookback window asked for.

Maximum array length: 6
price_type
enum<string>
required

Returns are price returns of split-consistent daily closes.

Available options:
close_split_consistent_price_return
Example:

"close_split_consistent_price_return"

methodology
object
required

How returns, the fit and the risk statistics are computed.

Example:
units
object
required

The unit of each statistic name ending.

Example:
source
string
required

What the risk statistics are built from.

Maximum string length: 200
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
Example:

"Daily closes of US listings"

as_of
string<date-time>
required

When Darvas built the risk answer.

Maximum string length: 40
Example:

"2026-11-30T12:00:00.000Z"