Skip to main content

DCA

dca

Chart: DCA

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)
1closing_pricestringClosing price
2daily_cumulative_satsstringDaily cumulative sats (BTC)
3total_investedstringTotal invested (USD)
4current_portfolio_valuestringCurrent portfolio value (USD)
5current_returnstringCurrent return (decimal)
6colorstringColor

Example Request

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

Example Request with Latest

https://charts.bitbo.io/api/v1/dca/?latest=true

Code Samples

curl "https://charts.bitbo.io/api/v1/dca/?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",
"12.34",
"#ff0000"
],
[
"2025-05-08",
"23.45",
"23.45",
"23.45",
"23.45",
"23.45",
"#ff0000"
],
[
"2025-05-09",
"34.56",
"34.56",
"34.56",
"34.56",
"34.56",
"#ff0000"
]
]
}