> For the complete documentation index, see [llms.txt](https://buddyguides.gitbook.io/xrpl-buddy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://buddyguides.gitbook.io/xrpl-buddy/general-commands/amm.md).

# /amm

Create and manage LPs

<figure><img src="https://983973768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqSSnClL8z6QIzLGbWyR%2Fuploads%2Fu3y6AkRznMmOPDNqSZ2P%2FCaptura%20de%20pantalla%202024-06-04%20a%20las%2015.05.11.png?alt=media&amp;token=d9654baa-1ed9-4bbb-8295-cad5fd7a418a" alt="" width="375"><figcaption></figcaption></figure>

Create and manage LPs

### (create)

<figure><img src="https://983973768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqSSnClL8z6QIzLGbWyR%2Fuploads%2FJ1aHulMgfBCdWbtmJVqm%2FCaptura%20de%20pantalla%202024-06-04%20a%20las%2015.09.47.png?alt=media&amp;token=fe59d5d8-0557-4f92-98aa-b3613dd49d36" alt=""><figcaption></figcaption></figure>

Create an AMM:

* address: Your address
* amount1: The amount of the first asset you want to create.
* currency1: The three letters of the first asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer1: The issuer address of the first asset. In case your currency is XRP, just write any word.
* amount2: The amount of the second asset you want to create.
* currency2: The three letters of the second asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer2: The issuer address of the second asset. In case your currency is XRP, just write any word.
* trading\_fee: The trading fee.

### (delete)

<figure><img src="https://983973768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqSSnClL8z6QIzLGbWyR%2Fuploads%2F2hPuVFHgwfSDPIN1tofQ%2FCaptura%20de%20pantalla%202024-06-04%20a%20las%2015.10.40.png?alt=media&amp;token=6019a22b-02e7-4e7c-baf5-d50abd2b43e0" alt=""><figcaption></figcaption></figure>

Delete an AMM:

* address: Your address
* currency1: The three letters of the first asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer1: The issuer address of the first asset. In case your currency is XRP, just write any word.
* currency2: The three letters of the second asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer2: The issuer address of the second asset. In case your currency is XRP, just write any word.

{% hint style="info" %}
The AMM needs to be empty to delete it.
{% endhint %}

### (deposit\_amounts)

Deposit amounts of both assets in an AMM:

<figure><img src="https://983973768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqSSnClL8z6QIzLGbWyR%2Fuploads%2FRfFhro96orYDdk5pRRTZ%2FCaptura%20de%20pantalla%202024-06-04%20a%20las%2015.14.20.png?alt=media&amp;token=1c9e0c8d-a8a5-4c95-9ad4-20454108b1a3" alt=""><figcaption></figcaption></figure>

* address: Your address
* amount1: The amount of the first asset you want to create.
* currency1: The three letters of the first asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer1: The issuer address of the first asset. In case your currency is XRP, just write any word.
* amount2: The amount of the second asset you want to create.
* currency2: The three letters of the second asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer2: The issuer address of the second asset. In case your currency is XRP, just write any word.

### (withdrawal\_all)

<figure><img src="https://983973768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqSSnClL8z6QIzLGbWyR%2Fuploads%2F5eywaSprj078qoIh1XKj%2FCaptura%20de%20pantalla%202024-06-04%20a%20las%2015.13.34.png?alt=media&amp;token=81453c02-efb7-4460-bd5a-4790d6d0ca5b" alt=""><figcaption></figcaption></figure>

Withdraw full amount of both assets:

* address: Your address
* currency1: The three letters of the first asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer1: The issuer address of the first asset. In case your currency is XRP, just write any word.
* currency2: The three letters of the second asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer2: The issuer address of the second asset. In case your currency is XRP, just write any word.

### (withdrawal\_amounts)

<figure><img src="https://983973768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqSSnClL8z6QIzLGbWyR%2Fuploads%2FrQ4V0FlCAI3zAd3Hb9hs%2FCaptura%20de%20pantalla%202024-06-04%20a%20las%2015.12.07.png?alt=media&amp;token=2cf8c103-4401-457c-b245-9d7ebd68aaff" alt=""><figcaption></figcaption></figure>

Withdraw some amounts of both assets:

* address: Your address
* amount1: The amount of the first asset you want to create.
* currency1: The three letters of the first asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer1: The issuer address of the first asset. In case your currency is XRP, just write any word.
* amount2: The amount of the second asset you want to create.
* currency2: The three letters of the second asset (e.g. "ABC"), in case of XRP, just write XRP.
* issuer2: The issuer address of the second asset. In case your currency is XRP, just write any word.
* trading\_fee: The trading fee.
