cURL
curl -X GET "https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day" \
-H "Authorization: Bearer <YOUR_API_KEY>"fetch("https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day", { headers: { "Authorization": "Bearer <YOUR_API_KEY>"} })
.then(response => response.json())
.then(data => console.log(data))require('axios')
.get("https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day", { headers: { Authorization: 'Bearer <YOUR_API_KEY>' } })
.then(response => console.log(response))require 'net/http'
uri = URI("https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer <YOUR_API_KEY>"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.bodyimport requests
headers = {'Authorization': 'Bearer <YOUR_API_KEY>'}
url = "https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day"
print(requests.get(url, headers=headers).json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cryptoquant.com/v2/community/bitcoin-pnl-index",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cryptoquant.com/v2/community/bitcoin-pnl-index"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cryptoquant.com/v2/community/bitcoin-pnl-index")
.header("Authorization", "Bearer <token>")
.asString();{
"status": {
"code": 200,
"message": "success"
},
"result": {
"window": "<string>",
"data": [
{
"datetime": "2026-06-14 00:00:00",
"pnl_index": -0.58300629,
"pnl_index_365day_ma": 0.10380787,
"buy": 0,
"neutral": 1
}
]
}
}Community-built Indicators
PnL Index
CryptoQuant’s P&L Index uses the MVRV ratio, NUPL and LTH/STH SOPR to build a single bitcoin valuation indicator.
GET
/
community
/
bitcoin-pnl-index
cURL
curl -X GET "https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day" \
-H "Authorization: Bearer <YOUR_API_KEY>"fetch("https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day", { headers: { "Authorization": "Bearer <YOUR_API_KEY>"} })
.then(response => response.json())
.then(data => console.log(data))require('axios')
.get("https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day", { headers: { Authorization: 'Bearer <YOUR_API_KEY>' } })
.then(response => console.log(response))require 'net/http'
uri = URI("https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer <YOUR_API_KEY>"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.bodyimport requests
headers = {'Authorization': 'Bearer <YOUR_API_KEY>'}
url = "https://api.cryptoquant.com/v2/community/bitcoin-pnl-index?window=day"
print(requests.get(url, headers=headers).json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cryptoquant.com/v2/community/bitcoin-pnl-index",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cryptoquant.com/v2/community/bitcoin-pnl-index"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cryptoquant.com/v2/community/bitcoin-pnl-index")
.header("Authorization", "Bearer <token>")
.asString();{
"status": {
"code": 200,
"message": "success"
},
"result": {
"window": "<string>",
"data": [
{
"datetime": "2026-06-14 00:00:00",
"pnl_index": -0.58300629,
"pnl_index_365day_ma": 0.10380787,
"buy": 0,
"neutral": 1
}
]
}
}What it measures
The P&L (Profit & Loss) Index combines several on-chain profitability metrics — the MVRV ratio, NUPL, and the LTH/STH SOPR ratio — into a single normalized bitcoin valuation indicator. By aggregating these signals, it captures the aggregate profit/loss state of the market in one value, smoothing out the noise of any individual metric.How to interpret it
The index oscillates around a neutral zone, with extremes flagging stretched valuations:- Values above 1 (red line) indicate bitcoin price is overvalued — the market is broadly in heavy unrealized profit, which historically coincides with cycle tops and elevated selling pressure.
- Values below -1.38 (green line) indicate bitcoin price is undervalued — the market is broadly in unrealized loss, historically marking accumulation zones and cycle bottoms.
Key thresholds
- Overvalued: above 1 (red line)
- Undervalued: below -1.38 (green line)
Run this metric in CryptoQuant Analytics
Authorizations
For each API request, include the Authorization HTTP header with Bearer <YOUR_API_KEY>.
Query Parameters
Time interval for aggregation.
Starting time, formatted as YYYYMMDDTHHMMSS (UTC). If window=day, YYYYMMDD is also accepted.
Ending time, formatted as YYYYMMDDTHHMMSS (UTC). If window=day, YYYYMMDD is also accepted.
Maximum number of data rows to return. Ranges from 1 to 10,000.
Required range:
1 <= x <= 10000