# AutoSellProfile

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

| Field             | Type / details                                                                                                                                                                   |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`              | **String** - unique key, referenced by [Controls](https://docs.odinbot.io/api-documentation/types/controls) or [Mirror](https://docs.odinbot.io/api-documentation/types/mirror). |
| `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**](https://docs.odinbot.io/api-documentation/api-methods/get-v1-auto-sell-profiles) (array)\
> • [**GET /v1/auto-sell-profile/{id}**](https://docs.odinbot.io/api-documentation/api-methods/get-v1-auto-sell-profile-id) (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="" %}
[](https://docs.odinbot.io/api-documentation/types)
{% endcontent-ref %}
