Skip to main content

Get DCA Bot profit data

GET
/ver1/bots/:bot_id/profit_by_day
Permission: BOTS_READ
Security: SIGNED

Returns daily profit data for a specified DCA Bot, grouped by date and identified by its unique ID.


Path Parameter

idintegerrequired

Unique 3Commas ID for this DCA Bot entity.

Query Parameter

daysinteger

Specifies the number of days for which profit data is requested for this bot.

default: 30

Example Request

GET
/ver1/bots/15565014/profit_by_day

Response Parameters

s_datestring

The specific date for which profit data is recorded for the this DCA Bot.

unix_timestampinteger

The date represented as a Unix Timestamp for which profit data is recorded

profitobject

Contain profit or loss data for the specified day, broken down by currency

Hide child parametersShow child parameters
btcinteger

BTC profit or loss from deals per day.

usdinteger

USD profit or loss from deals per day.

Example Response

{
"data": [
{
"s_date": "2024-10-28",
"unix_timestamp": 1730073600,
"profit": {
"btc": "0.00002960",
"usd": "2.05"
}
},
{
"s_date": "2024-10-29",
"unix_timestamp": 1730160000,
"profit": {
"btc": "0.00001436",
"usd": "1.02"
}
},
{
"s_date": "2024-10-30",
"unix_timestamp": 1730246400,
"profit": {
"btc": "0.00001456",
"usd": "1.06"
}
},
{
"s_date": "2024-11-06",
"unix_timestamp": 1730851200,
"profit": {
"btc": "0.00002720",
"usd": "2.05"
}
},
{
"s_date": "2024-11-07",
"unix_timestamp": 1730937600,
"profit": {
"btc": "0.00002823",
"usd": "2.13"
}
}
]
}