cURL
curl -X GET "https://api.cryptoquant.com/v2/community/bitcoin-bull-bear-indicator?window=day" \
-H "Authorization: Bearer <YOUR_API_KEY>"fetch("https://api.cryptoquant.com/v2/community/bitcoin-bull-bear-indicator?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-bull-bear-indicator?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-bull-bear-indicator?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-bull-bear-indicator?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-bull-bear-indicator",
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-bull-bear-indicator"
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-bull-bear-indicator")
.header("Authorization", "Bearer <token>")
.asString();{
"status": {
"code": 200,
"message": "success"
},
"result": {
"window": "<string>",
"data": [
{
"datetime": "2026-06-14 00:00:00",
"bull_bear_indicator": -0.69567171,
"type": "bear"
}
]
}
}Community-built Indicators
Bull-Bear Market Indicator
The bull/bear market cycle indicator is a momentum metric. It measures the difference between the P&L Index and its 365-day moving average.
GET
/
community
/
bitcoin-bull-bear-indicator
cURL
curl -X GET "https://api.cryptoquant.com/v2/community/bitcoin-bull-bear-indicator?window=day" \
-H "Authorization: Bearer <YOUR_API_KEY>"fetch("https://api.cryptoquant.com/v2/community/bitcoin-bull-bear-indicator?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-bull-bear-indicator?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-bull-bear-indicator?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-bull-bear-indicator?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-bull-bear-indicator",
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-bull-bear-indicator"
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-bull-bear-indicator")
.header("Authorization", "Bearer <token>")
.asString();{
"status": {
"code": 200,
"message": "success"
},
"result": {
"window": "<string>",
"data": [
{
"datetime": "2026-06-14 00:00:00",
"bull_bear_indicator": -0.69567171,
"type": "bear"
}
]
}
}What it measures
The Bull/Bear Market Cycle Indicator is a momentum metric built on top of the P&L Index. It measures the difference between the P&L Index and its 365-day moving average, isolating the direction and strength of the current market cycle rather than the absolute valuation level.How to interpret it
Because it tracks the P&L Index relative to its own long-term trend, the indicator reads as a cycle-phase signal:- Above 0 — the P&L Index is above its 365-day average, indicating bullish momentum and a bull cycle.
- Below 0 — the P&L Index is below its 365-day average, indicating bearish momentum and a bear cycle.
Key thresholds
- Bull cycle: indicator above 0.
- Bear cycle: indicator below 0 and below its 365-day moving average.
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