---
title: "Median SOPR"
method: GET
path: "/v1/metrics/global/sopr_median_weekly_equal_raw"
---

# Median SOPR

`GET /v1/metrics/global/sopr_median_weekly_equal_raw`

## Request

- Base URL: `https://api.glassnode.com`
- URL: `https://api.glassnode.com/v1/metrics/global/sopr_median_weekly_equal_raw`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/glassnode/apis/glassnode-api-addresses/docs/v1/metrics/global/sopr_median_weekly_equal_raw/get.ts> (a function with typed inputs; its response is checked against the schema)

Global median SOPR (Spent Output Profit Ratio), with weekly rebalancing and equal weighting applied within each basket. SOPR measures the ratio of the realized value to the cost basis of coins moved on-chain — values above 1 indicate coins spent in profit, values below 1 indicate coins spent at a loss. The basket aggregate is computed as the median across constituents to limit the influence of outliers. Constituents are grouped into four baskets based on market cap size: all eligible coins, large cap (≥$1B), mid cap ($100M–$1B), and small cap (<$100M), with basket membership reassessed weekly and each asset contributing equally within its basket. The resulting series provides a size-segmented view of profit-taking and loss-realization behavior across the crypto market. For full methodology details, see the [Global Metrics Methodology](https://docs.glassnode.com/further-information/metric-guides/global-metrics/global-metrics-methodology) documentation.

[View in Studio](https://studio.glassnode.com/charts/global.SoprMedianWeeklyEqualRaw?a=BTC)

## Query parameters

- `a` string, required
- `i` string
- `f` 'csv' | 'json'
- `timestamp_format` 'unix' | 'humanized'

## Response `200`

Successful response

- TimeSeriesDataPoint[]
  - `t` integer: Unix timestamp
  - `v` union: Metric value (can be number, object, or array depending on the metric)
    - number
    - object
  - `o` object: Object containing multiple metric values (when applicable)

## Other responses

- `400`: Bad Request - Invalid parameters or unsupported asset
- `401`: Unauthorized - Invalid or missing API key
- `429`: Too Many Requests - Rate limit exceeded

---

[API](https://skmtc.dev/glassnode/apis/glassnode-api-addresses.md) - [All operations](https://skmtc.dev/glassnode/apis/glassnode-api-addresses/llms.txt) - [OpenAPI document](https://skmtc.dev/glassnode/apis/glassnode-api-addresses/revisions/7f6a24031f46?raw)
