/amm

Create and manage LPs

Create and manage LPs

(create)

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)

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.

The AMM needs to be empty to delete it.

(deposit_amounts)

Deposit amounts of both assets in 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.

(withdrawal_all)

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)

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.

Last updated