Skip to main content

Monthly Performance

monthly-performance

Chart: Monthly Performance

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
0year_monthstringYear-month (YYYY-MM)
1open_pricestringOpen price
2close_pricestringClose price
3high_pricestringHigh price
4low_pricestringLow price
5percentage_differencestringPercentage difference (decimal)
6colorstringColor ('#0f0' positive / '#f00' negative / '#fff' zero)

Example Request

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

Example Request with Latest

https://charts.bitbo.io/api/v1/monthly-performance/?latest=true

Code Samples

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

Example Output

{
"data": [
[
"12.34",
"12.34",
"12.34",
"12.34",
"12.34",
"12.34",
"#ff0000"
],
[
"23.45",
"23.45",
"23.45",
"23.45",
"23.45",
"23.45",
"#ff0000"
],
[
"34.56",
"34.56",
"34.56",
"34.56",
"34.56",
"34.56",
"#ff0000"
]
]
}