> For the complete documentation index, see [llms.txt](https://3commas.gitbook.io/3commas-official-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://3commas.gitbook.io/3commas-official-api-docs/dca-bot/get-data-the-bots-profit.md).

# Get data on bot's profits grouped by day

<br>

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

**Permission:** BOTS\_READ\
**Security:** SIGNED\ <br>

> <mark style="color:blue;">**`GET`**</mark>
>
> `/ver1/bots/stats`

<br>

## Path Parameter<br>

**bot\_id**     `integer`     <mark style="color:orange;">required</mark>\
Unique 3Commas ID for this DCA Bot entity

<br>

## Query Parameter<br>

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

<br>

## Parameters response<br>

**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

&#x20;     **btc**     `integer`\
&#x20;     BTC profit or loss from deals per day

&#x20;     **usd**     `integer`\
&#x20;     USD profit or loss from deals per day

<br>

## Example Request<br>

```json
GET /ver1/bots/15565014/profit_by_day
```

<br>

## Example Response and errors<br>

<details>

<summary>Status: 200 OK</summary>

<br>

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

</details>
