> For the complete documentation index, see [llms.txt](https://docs.odinbot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.odinbot.io/api-documentation/types/autosellprofile.md).

# AutoSellProfile

Define and manage profiles in the [OdinBot interface](/setup-and-initialization/4.-odinbots-controls/4.3-auto-sell-profiles.md), then use their `id` in your [Controls](/api-documentation/types/controls.md) or [Mirror](/api-documentation/types/mirror.md) settings.

| Field             | Type / details                                                                                                                           |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `id`              | **String** - unique key, referenced by [Controls](/api-documentation/types/controls.md) or [Mirror](/api-documentation/types/mirror.md). |
| `createdIso`      | **String** - ISO-8601 timestamp when the profile was created.                                                                            |
| `profileName`     | **String** - human-readable label shown in the app.                                                                                      |
| `takeProfitRules` | `TakeProfitRule` – ordered profit-taking steps.                                                                                          |
| `stopLossRules`   | `StopLossRule` – ordered stop-loss steps.                                                                                                |

> Returned only by\
> • [**GET /v1/auto-sell-profiles**](/api-documentation/api-methods/get-v1-auto-sell-profiles.md) (array)\
> • [**GET /v1/auto-sell-profile/{id}**](/api-documentation/api-methods/get-v1-auto-sell-profile-id.md) (single profile)

#### TakeProfitRule

| Field               | Type / details                                      |
| ------------------- | --------------------------------------------------- |
| `percentOfPosition` | Number - portion of the position to sell (0-100).   |
| `percentGain`       | Number - gain threshold (%) that triggers the rule. |

#### StopLossRule

| Field               | Type / details                                      |
| ------------------- | --------------------------------------------------- |
| `percentOfPosition` | Number - portion of the position to sell (0-100).   |
| `percentLoss`       | Number - loss threshold (%) that triggers the rule. |

#### Example object

```json
{
    "autoSellProfile": {
        "createdIso": "2025-08-01T04:14:39.112Z",
        "id": "8ZwsQvnUq7arELq5Hks5VN6Y36GTb4Fj3hCdenWFHupd",
        "profileName": "Profile 1",
        "stopLossRules": [
            {
                "percentLoss": 50,
                "percentOfPosition": 100
            }
        ],
        "takeProfitRules": [
            {
                "percentGain": 30,
                "percentOfPosition": 25
            },
            {
                "percentGain": 150,
                "percentOfPosition": 25
            },
            {
                "percentGain": 300,
                "percentOfPosition": 50
            }
        ]
    }
}
```

{% content-ref url="/pages/0e7H4uTaOzpZ6yewSpak" %}
[Types](/api-documentation/types.md)
{% endcontent-ref %}
