# /calculate

Calculate the value of one token in another token or USD.

## Usage

`/calculate <value> <from> <to>`

| Option  | Required | Description                                     |
| ------- | :------: | ----------------------------------------------- |
| `value` |     x    | The amount to convert                           |
| `from`  |     x    | Source currency (token name, address, or "USD") |
| `to`    |     x    | Target currency (token name, address, or "USD") |

## Example

`/calculate 100 SOL USD` — converts 100 SOL to its USD value

<figure><img src="https://solmatebot.com/docs/placeholder-cmd-calculate.png" alt=""><figcaption><p>/calculate command converting between tokens</p></figcaption></figure>

The response includes a "Buy on Jup.ag" button for quick access to swap on Jupiter.


---

# 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.solmatebot.com/discord-commands/calculate.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.
