# Melmint arbitrage

## What is arbitrage?

Arbitrage is:

> The buying and selling of some asset (e.g. currency, securities, commodities, etc) in different markets to take advantage of differing prices for the same asset

In our case, we have multiple "markets", or liquidity pools, that contain asset pairs, such as MEL/SYM or MEL/ERG, and SYM/ERG. The Melmint mechanism [maintains the MEL/SYM pair](/concepts/melmint.md), but does not interact with the other asset pairs.

In order to maintain the other pairs, we'll need YOU to do arbitrage and hopefully make some money.

<img src="/files/QiOybA0Uq8IG1JyqV9fS" alt="" data-size="original">

## Using melwallet CLI to arbitrage

### Prerequisites

You'll need a wallet containing funds. [Here](/developer-guides/using-wallets/getting-started.md) is a guide on how to set that up on the testnet.

### Time for some arbitrage :moneybag:

```shell-session
melwallet-cli --wallet-path <path to wallet> autoswap <value>  
```

Here, `<value>` is the amount of MEL that you want to automatically swap for arbitrage.

This command will automatically execute trades on the "triangular" MEL/SYM/ERG pairs.


---

# 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.melproject.org/developer-guides/getting-tokens/melmint-arbitrage.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.
