# 4.2 Selling Tokens

**Selling works the same way as buying.**

You choose how many tokens you want to sell (or how much SOL / USD you want to receive), and Trendex uses **Jupiter routing** to automatically source the best execution path.

When the swap completes, the proceeds are sent directly to your **Trendex wallet**, secured via **Privy**.


---

# 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.trendex.gg/4-buying-and-selling-tokens/4.2-selling-tokens.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.
