Get data on bot's profits grouped by day

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

Permission: BOTS_READ Security: SIGNED

GET

/ver1/bots/stats

Path Parameter

bot_id integer required Unique 3Commas ID for this DCA Bot entity

Query Parameter

days integer Specifies the number of days for which profit data is requested for this bot Default: 30

Parameters response

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

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

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

btc integer BTC profit or loss from deals per day

usd integer USD profit or loss from deals per day

Example Request

GET /ver1/bots/15565014/profit_by_day

Example Response and errors

Status: 200 OK

{
    "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"
            }
        }
    ]
}

Last updated

Was this helpful?