# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.odinbot.io/api-documentation/types/autosellprofile.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
