Skip to main content

SOPR Ratio

sopr-ratio

Chart: SOPR Ratio

Parameters

NameTypeDescriptionRequired
start_datestringStart date in YYYY-MM-DD formatNo
end_datestringEnd date in YYYY-MM-DD formatNo
latestboolIf true, returns the current valueNo

Output

IndexNameTypeDescription
0datestringDate (ISO)
1pricestringPrice
2lth_soprstringLTH SOPR
3sth_soprstringSTH SOPR
4lth_sth_ratiostringLTH/STH ratio
5ratio_1stringratio - 1
6ratio_colorstringratio color
7lth_sopr_1stringLTH SOPR - 1
8sth_sopr_1stringSTH SOPR - 1
9field_7d_ma_ratiostring7d MA ratio
10field_7d_ma_ratio_1string7d MA ratio - 1
11field_30d_ma_ratiostring30d MA ratio
12field_30d_ma_ratio_1string30d MA ratio - 1
13sopr_percentilestringSOPR percentile

Example Request

https://charts.bitbo.io/api/v1/sopr-ratio/?start_date=2025-05-07&end_date=2025-05-09

Example Request with Latest

https://charts.bitbo.io/api/v1/sopr-ratio/?latest=true

Code Samples

curl "https://charts.bitbo.io/api/v1/sopr-ratio/?start_date=2025-05-07&end_date=2025-05-09&api_key=YOUR_API_KEY"

Example Output

{
"data": [
[
"2025-05-07",
"12.34",
"12.34",
"12.34",
"12.34",
"56.78",
"#ff0000",
"56.78",
"56.78",
"12.34",
"56.78",
"12.34",
"56.78",
"12.34"
],
[
"2025-05-08",
"23.45",
"23.45",
"23.45",
"23.45",
"67.89",
"#ff0000",
"67.89",
"67.89",
"23.45",
"67.89",
"23.45",
"67.89",
"23.45"
],
[
"2025-05-09",
"34.56",
"34.56",
"34.56",
"34.56",
"78.90",
"#ff0000",
"78.90",
"78.90",
"34.56",
"78.90",
"34.56",
"78.90",
"34.56"
]
]
}