# Curve V2

#### Below is the list of tokens we currently support for these endpoints. We are happy to add support for additional tokens upon request.

<details>

<summary>Supported Mainnet Token Pairs</summary>

1. **steth - ETH/stETH** \
   0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
2. **threepool - DAI/USDC/USDT** \
   0x6b175474e89094c44da98b954eedeac495271d0f, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xdac17f958d2ee523a2206206994597c13d831ec7
3. **FRAXsDAI - FRAX/sDAI** \
   0x853d955acef822db058eb8505911ed77f175b99e, 0x83f20f44975d03b1b09e64809b757c47f942beea
4. **FRAXPYUSD - FRAX/PYUSD** \
   0x853d955acef822db058eb8505911ed77f175b99e, 0x6c3ea9036406852006290770bedfcaba0e23a0e8
5. **frxETHWETH - WETH/frxETH** \
   0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, 0x5e8422345238f34275888049021821e8e08caa1f
6. **stETHng - ETH/stETH** \
   0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
7. **fraxusdc - FRAX/USDC** \
   0x853d955acef822db058eb8505911ed77f175b99e, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
8. **tricrypto2 - USDT/WBTC/WETH**\
   0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
9. **TriCryptoUSDT - USDT/WBTC/WETH** \
   0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
10. **stETHfrxETH - stETH/frxETH** \
    0xae7ab96520de3a18e5e111b5eaab095312d7fe84, 0x5e8422345238f34275888049021821e8e08caa1f
11. **alUSDFRAXBP - alUSD/FRAX/BASIS** \
    0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 0x3175df0976dfa876431c2e9ee6bc45b65d3473cc
12. **PayPool - PYUSD/USDC**\
    0x6c3ea9036406852006290770bedfcaba0e23a0e8, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
13. **mkUSDUSDC - mkUSD/USDC** \
    0x4591dbff62656e7859afe5e45f6f47d3669fbb28, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
14. **TriCryptoUSDC - USDC/WBTC/WETH** \
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
15. **frxeth - ETH/frxETH** \
    0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x5e8422345238f34275888049021821e8e08caa1f
16. **OETH - ETH/OETH** \
    0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3
17. **cvxCrvCrv - cvxCrv/Crv** \
    0xd533a949740bb3306d119cc777fa900ba034cd52, 0x62b9c7356a2dc64a1969e19c23e4f579f9810aa7
18. **ETHxwstETH - ETHx/wstETH** \
    0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 0xa35b1b31ce002fbf2058d22f30f95d405200a15b
19. **cvxFxsFxs - cvxFXS/FXS**\
    0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0, 0xfeef77d3f69374f66429c91d732a244f074bdf74
20. **FRAXFPI - FRAX/FPI** \
    0x853d955acef822db058eb8505911ed77f175b99e, 0x5ca135cb8527d76e932f34b5145575f9d8cbe08e
21. **mim - MIM/DAI/USDC/USDT** \
    0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 0x6c3f90f043a72fa612cbac8115ee7e52bde6e490
22. **crvUSDUSDC - USDC/crvUSD** \
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
23. **alETHfrxETH - alETH/frxETH** \
    0x0100546f2cd4c9d97f798ffc9755e47865ff7ee6, 0x5e8422345238f34275888049021821e8e08caa1f
24. **aave - DAI/USDC/USDT**\
    0x028171bca77440897b824ca71d1c56cac55b68a3, 0xbcca60bb61934080951369a648fb03df4f96263c, 0x3ed3b47dd13ec9a98b44e6204a523e766b225811
25. **crvUSDUSDT - USDT/crvUSD** \
    0xdac17f958d2ee523a2206206994597c13d831ec7, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
26. **eursusd - EURS/USDC**\
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\
    0xdb25f211ab05b1c97d595516f45794528a807ad8
27. **pufETHwstETH - pufETH/wstETH** \
    0xd9a442856c234a39a81a089c06451ebaa4306a72\
    0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
28. **pxETHWETH - pxETH/WETH**\
    0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\
    0x04c154b66cb340f3ae24111cc767e0184ed00cc6
29. **agEUREUROC - agEUR/EURC**\
    0x1a7e4e63778b4f12a199c062f3efdd288afcbce8 0x1abaea1f7c830bd89acc67ec4af516284b1bc33c
30. **rUSDYUSDC - rUSDY/USDC**\
    0xaf37c1167910ebc994e266949387d2c7c326b879\
    0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

</details>

### /getprice

Returns the swap quotation for the given token pair.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getprice`

#### Query Parameters

| Name                                       | Type   | Description                                                             |
| ------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                             |
| dexId<mark style="color:red;">\*</mark>    | String | Refer to the [DEX ID](/ids/dex-ids.md) page for details.                |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched. |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                        |

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network/dex/getprice?dexId=1500&path=0x6b175474e89094c44da98b954eedeac495271d0f,0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&amountIn=10000000000000000000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000000000",
        "path": [
            "0x6b175474e89094c44da98b954eedeac495271d0f",
            "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
        ],
        "amountsOut": [
            "10000000000000000000",
            "9998342"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getuserliquidity

Returns the balance of a particular token pair of an account.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getuserliquidity`

#### Query Parameters

| Name                                      | Type   | Description                                                              |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                              |
| tokenA<mark style="color:red;">\*</mark>  | String | Address of token.                                                        |
| address<mark style="color:red;">\*</mark> | String | Public address of liquidity provider.                                    |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenB<mark style="color:red;">\*</mark>  | String | Address of token.                                                        |
| tokenC                                    | String | Address of token.                                                        |
| tokenD                                    | String | Address of token.                                                        |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/dex/getuserliquidity?address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1500&tokenA=0x6b175474e89094c44da98b954eedeac495271d0f&tokenB=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&tokenC=0xdac17f958d2ee523a2206206994597c13d831ec7
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pairAddress": "0x6c3f90f043a72fa612cbac8115ee7e52bde6e490",
        "tokenA": "0",
        "tokenB": "0",
        "tokenC": "0",
        "liquidity": "0"
    }
}
```

{% endtab %}
{% endtabs %}

### /getpoolliquidity

Returns the total liquidity for a specified pool.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getpoolliquidity`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                           |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/dex/getpoolliquidity?dexId=1500&poolAddress=0xc5424b857f758e906013f3555dad202e4bdb4567
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "6906912970691008135418"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/gettokenliquidity`

#### Query Parameters

| Name                                          | Type   | Description                                                              |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                           | String | Remote procedural call URL.                                              |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                        |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network/dex/gettokenliquidity?dexId=1500&poolAddress=0xdebf20617708857ebe4f679508e7b7863a8a8eee
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aDAI": "4410821251140993186643520",
        "aUSDC": "4427459634996",
        "aUSDT": "12345097594917"
    }
}
```

{% endtab %}
{% endtabs %}

### /getindividualposition

Returns the liquidity position for a specified user address across all the pools for the DEX.&#x20;

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getindividualposition`

#### Query Parameters

| Name                                      | Type   | Description                                                              |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------ |
| rpc                                       | String | Remote procedural call URL.                                              |
| address<mark style="color:red;">\*</mark> | String | The public address of the liquidity holder.                              |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/dex/getindividualposition?address=0x9bb98140F36553dB71fe4a570aC0b1401BC61B4F&dexId=1500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "aggregatedLiquidity": "1807177360143696334",
        "poolAddresses": {
            "DAIUSDCUSDT": {
                "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7": "1797671437464531430"
            },
            "ETHstETH": {
                "0xdc24316b9ae028f1497c275eb9192a3ea0f67022": "9505922679164904"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getpool`

#### Query Parameter

| Name                                     | Type   | Description                                                              |
| ---------------------------------------- | ------ | ------------------------------------------------------------------------ |
| dexId<mark style="color:red;">\*</mark>  | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| tokenA<mark style="color:red;">\*</mark> | String | TokenA address                                                           |
| tokenB<mark style="color:red;">\*</mark> | String | TokenB address                                                           |
| tokenC                                   | String | TokenC address                                                           |
| tokenD                                   | String | TokenD address                                                           |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/dex/getpool?dexId=1500&tokenA=0x853d955acef822db058eb8505911ed77f175b99e&tokenB=0x6c3ea9036406852006290770bedfcaba0e23a0e8
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0xa5588f7cdf560811710a2d82d3c9c99769db1dcb",
            "poolFees": "NA",
            "tickSpacing": "NA",
            "tokensLiquidity": {
                "PYUSD": "7777756332718759809928",
                "FRAX": "1862174392"
            },
            "liquidity": "9617186452485961097179"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /gethistoricalpoolchartdata

Get the data the OHCLV (Open, High, Close, Low, and Volume) within the specified time interval for pool on Curve V2. Available on Ethereum only.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/gethistoricalpoolchartdata`

#### Query Parameter

| Name                                          | Type   | Description                                                                                                                                              |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.                                                                                 |
| interval                                      | String | <p>A number values representing the number of unix epoch seconds or in format of . For example 1m,1h<br>By default 15m</p>                               |
| limit                                         | String | <p>No of iteration.<br>Start limit is 100 and maximum limit is 500.<br>By default 100</p>                                                                |
| poolAddress<mark style="color:red;">\*</mark> | String | <p>Pool address whose transactions is to be fetched. <br>Note: We supported pool mentioned in the <a href="#supported-mainnet-token-pairs">list</a>.</p> |
| rpc                                           | String | Remote procedural call URL.                                                                                                                              |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/dex/gethistoricalpoolchartdata?dexId=1500&poolAddress=0xdc24316b9ae028f1497c275eb9192a3ea0f67022&interval=15m&limit=100
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "pair": "ETH/stETH",
        "chartData": [
            {
                "1719839676-1719840576": {
                    "open": "1.000011026587306",
                    "high": "1.000215273461691",
                    "low": "1.000011026587306",
                    "close": "1.000215273461691",
                    "volume": "103743.2464882694"
                }
            },
            {
                "1719840576-1719841476": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719841476-1719842376": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719842376-1719843276": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719843276-1719844176": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719844176-1719845076": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719845076-1719845976": {
                    "open": "1.000215273461691",
                    "high": "1.000215273461691",
                    "close": "1.000215273461691",
                    "low": "1.000215273461691",
                    "volume": "0"
                }
            },
            {
                "1719845976-1719846876": {
                    "open": "1.000215273461691",
                    "high": "1.000219820950448",
                    "low": "1.000020070459434",
                    "close": "1.000020070459434",
                    "volume": "6855.129987442908"
                }
            },
            {
                "1719846876-1719847776": {
                    "open": "1.000020070459434",
                    "high": "1.000020070459434",
                    "close": "1.000020070459434",
                    "low": "1.000020070459434",
                    "volume": "0"
                }
            },
            {
                "1719847776-1719848676": {
                    "open": "1.000020070459434",
                    "high": "1.00024882068491",
                    "low": "1.000020070459434",
                    "close": "1.000248820684910",
                    "volume": "348773.97008431476"
                }
            },
            {
                "1719848676-1719849576": {
                    "open": "1.000248820684910",
                    "high": "1.000248820684910",
                    "close": "1.000248820684910",
                    "low": "1.000248820684910",
                    "volume": "0"
                }
            },
            {
                "1719849576-1719850476": {
                    "open": "1.000248820684910",
                    "high": "1.000248820684910",
                    "close": "1.000248820684910",
                    "low": "1.000248820684910",
                    "volume": "0"
                }
            },
            {
                "1719850476-1719851376": {
                    "open": "1.000248820684910",
                    "high": "1.000282323100647",
                    "low": "1.00024882068491",
                    "close": "1.000282323100647",
                    "volume": "798327.1175274279"
                }
            },
            {
                "1719851376-1719852276": {
                    "open": "1.000282323100647",
                    "high": "1.000282323100647",
                    "close": "1.000282323100647",
                    "low": "1.000282323100647",
                    "volume": "0"
                }
            },
            {
                "1719852276-1719853176": {
                    "open": "1.000282323100647",
                    "high": "1.000282323100647",
                    "close": "1.000282323100647",
                    "low": "1.000282323100647",
                    "volume": "0"
                }
            },
            {
                "1719853176-1719854076": {
                    "open": "1.000282323100647",
                    "high": "1.000282323100647",
                    "low": "1.000061676503981",
                    "close": "1.000061676503981",
                    "volume": "776154.0826499853"
                }
            },
            {
                "1719854076-1719854976": {
                    "open": "1.000061676503981",
                    "high": "1.000061676503981",
                    "close": "1.000061676503981",
                    "low": "1.000061676503981",
                    "volume": "0"
                }
            },
            {
                "1719854976-1719855876": {
                    "open": "1.000061676503981",
                    "high": "1.000252349043247",
                    "low": "1.000061676503981",
                    "close": "1.000252349043247",
                    "volume": "33903.992995726425"
                }
            },
            {
                "1719855876-1719856776": {
                    "open": "1.000252349043247",
                    "high": "1.000252349043247",
                    "close": "1.000252349043247",
                    "low": "1.000252349043247",
                    "volume": "0"
                }
            },
            {
                "1719856776-1719857676": {
                    "open": "1.000252349043247",
                    "high": "1.000252349043247",
                    "close": "1.000252349043247",
                    "low": "1.000252349043247",
                    "volume": "0"
                }
            },
            {
                "1719857676-1719858576": {
                    "open": "1.000252349043247",
                    "high": "1.000281463045525",
                    "low": "1.000252349043247",
                    "close": "1.000281463045525",
                    "volume": "356564.33336387924"
                }
            },
            {
                "1719858576-1719859476": {
                    "open": "1.000281463045525",
                    "high": "1.000281463045525",
                    "low": "1.000081994156834",
                    "close": "1.000081994156834",
                    "volume": "17697.035651103743"
                }
            },
            {
                "1719859476-1719860376": {
                    "open": "1.000081994156834",
                    "high": "1.000081994156834",
                    "low": "1.000081888512435",
                    "close": "1.000081888512435",
                    "volume": "487.20998663871035"
                }
            },
            {
                "1719860376-1719861276": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719861276-1719862176": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719862176-1719863076": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719863076-1719863976": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719863976-1719864876": {
                    "open": "1.000081888512435",
                    "high": "1.000081888512435",
                    "close": "1.000081888512435",
                    "low": "1.000081888512435",
                    "volume": "0"
                }
            },
            {
                "1719864876-1719865776": {
                    "open": "1.000081888512435",
                    "high": "1.000282768782475",
                    "low": "1.000081888512435",
                    "close": "1.000282768782475",
                    "volume": "20489.7395317784"
                }
            },
            {
                "1719865776-1719866676": {
                    "open": "1.000282768782475",
                    "high": "1.000282768782475",
                    "close": "1.000282768782475",
                    "low": "1.000282768782475",
                    "volume": "0"
                }
            },
            {
                "1719866676-1719867576": {
                    "open": "1.000282768782475",
                    "high": "1.000283792069166",
                    "low": "1.000282768782475",
                    "close": "1.000283792069166",
                    "volume": "2403.2320454550486"
                }
            },
            {
                "1719867576-1719868476": {
                    "open": "1.000283792069166",
                    "high": "1.000283792069166",
                    "low": "1.000068216968752",
                    "close": "1.000068216968752",
                    "volume": "194331.7377786595"
                }
            },
            {
                "1719868476-1719869376": {
                    "open": "1.000068216968752",
                    "high": "1.000068216968752",
                    "close": "1.000068216968752",
                    "low": "1.000068216968752",
                    "volume": "0"
                }
            },
            {
                "1719869376-1719870276": {
                    "open": "1.000068216968752",
                    "high": "1.000068216968752",
                    "low": "1.00006758566797",
                    "close": "1.000067585667970",
                    "volume": "373.35670555050655"
                }
            },
            {
                "1719870276-1719871176": {
                    "open": "1.000067585667970",
                    "high": "1.000067585667970",
                    "close": "1.000067585667970",
                    "low": "1.000067585667970",
                    "volume": "0"
                }
            },
            {
                "1719871176-1719872076": {
                    "open": "1.000067585667970",
                    "high": "1.00006758566797",
                    "low": "1.000059138514303",
                    "close": "1.000059138514303",
                    "volume": "202691.97445706374"
                }
            },
            {
                "1719872076-1719872976": {
                    "open": "1.000059138514303",
                    "high": "1.00026160072234",
                    "low": "1.000059138514303",
                    "close": "1.000261600722340",
                    "volume": "260895.12166201358"
                }
            },
            {
                "1719872976-1719873876": {
                    "open": "1.000261600722340",
                    "high": "1.000261600722340",
                    "close": "1.000261600722340",
                    "low": "1.000261600722340",
                    "volume": "0"
                }
            },
            {
                "1719873876-1719874776": {
                    "open": "1.000261600722340",
                    "high": "1.000261600722340",
                    "close": "1.000261600722340",
                    "low": "1.000261600722340",
                    "volume": "0"
                }
            },
            {
                "1719874776-1719875676": {
                    "open": "1.000261600722340",
                    "high": "1.000272459324614",
                    "low": "1.00026160072234",
                    "close": "1.000272459324614",
                    "volume": "125.5703610392907"
                }
            },
            {
                "1719875676-1719876576": {
                    "open": "1.000272459324614",
                    "high": "1.000272466275237",
                    "low": "1.000272459324614",
                    "close": "1.000272466275237",
                    "volume": "41.48347065628334"
                }
            },
            {
                "1719876576-1719877476": {
                    "open": "1.000272466275237",
                    "high": "1.000272829463945",
                    "low": "1.000072403024002",
                    "close": "1.000272829463945",
                    "volume": "10118.372633676838"
                }
            },
            {
                "1719877476-1719878376": {
                    "open": "1.000272829463945",
                    "high": "1.000272829463945",
                    "low": "1.000272829463945",
                    "close": "1.000272829463945",
                    "volume": "0"
                }
            },
            {
                "1719878376-1719879276": {
                    "open": "1.000272829463945",
                    "high": "1.000272829463945",
                    "low": "1.000073042138261",
                    "close": "1.000073042138261",
                    "volume": "3395.401289131808"
                }
            },
            {
                "1719879276-1719880176": {
                    "open": "1.000073042138261",
                    "high": "1.000255798762702",
                    "low": "1.000058534729327",
                    "close": "1.000255798762702",
                    "volume": "484915.6629217491"
                }
            },
            {
                "1719880176-1719881076": {
                    "open": "1.000255798762702",
                    "high": "1.000255835826708",
                    "low": "1.000255798762702",
                    "close": "1.000255835826708",
                    "volume": "374.08586949381106"
                }
            },
            {
                "1719881076-1719881976": {
                    "open": "1.000255835826708",
                    "high": "1.000255980570336",
                    "low": "1.000255835826708",
                    "close": "1.000255980570336",
                    "volume": "1566.728129796136"
                }
            },
            {
                "1719881976-1719882876": {
                    "open": "1.000255980570336",
                    "high": "1.000255980570336",
                    "close": "1.000255980570336",
                    "low": "1.000255980570336",
                    "volume": "0"
                }
            },
            {
                "1719882876-1719883776": {
                    "open": "1.000255980570336",
                    "high": "1.00025608837841",
                    "low": "1.000054512992118",
                    "close": "1.000054512992118",
                    "volume": "22475.841835231826"
                }
            },
            {
                "1719883776-1719884676": {
                    "open": "1.000054512992118",
                    "high": "1.000255087293024",
                    "low": "1.000054512992118",
                    "close": "1.000255087293024",
                    "volume": "7226.298427090914"
                }
            },
            {
                "1719884676-1719885576": {
                    "open": "1.000255087293024",
                    "high": "1.000255087293024",
                    "close": "1.000255087293024",
                    "low": "1.000255087293024",
                    "volume": "0"
                }
            },
            {
                "1719885576-1719886476": {
                    "open": "1.000255087293024",
                    "high": "1.000255087293024",
                    "low": "1.000053731890531",
                    "close": "1.000053731890531",
                    "volume": "32075.110036924176"
                }
            },
            {
                "1719886476-1719887376": {
                    "open": "1.000053731890531",
                    "high": "1.000252585197593",
                    "low": "1.000037934064211",
                    "close": "1.000223508121641",
                    "volume": "362120.06768811523"
                }
            },
            {
                "1719887376-1719888276": {
                    "open": "1.000223508121641",
                    "high": "1.000245984129629",
                    "low": "1.000056095994072",
                    "close": "1.000056095994072",
                    "volume": "405517.13249377836"
                }
            },
            {
                "1719888276-1719889176": {
                    "open": "1.000056095994072",
                    "high": "1.00025576877053",
                    "low": "1.000056095994072",
                    "close": "1.000255768770530",
                    "volume": "32.34145238588303"
                }
            },
            {
                "1719889176-1719890076": {
                    "open": "1.000255768770530",
                    "high": "1.000255768770530",
                    "close": "1.000255768770530",
                    "low": "1.000255768770530",
                    "volume": "0"
                }
            },
            {
                "1719890076-1719890976": {
                    "open": "1.000255768770530",
                    "high": "1.000255798558196",
                    "low": "1.00025576877053",
                    "close": "1.000255798558196",
                    "volume": "683.8034900192428"
                }
            },
            {
                "1719890976-1719891876": {
                    "open": "1.000255798558196",
                    "high": "1.000255798558196",
                    "close": "1.000255798558196",
                    "low": "1.000255798558196",
                    "volume": "0"
                }
            },
            {
                "1719891876-1719892776": {
                    "open": "1.000255798558196",
                    "high": "1.000255914767894",
                    "low": "1.000255798558196",
                    "close": "1.000255914767894",
                    "volume": "2110.094764718195"
                }
            },
            {
                "1719892776-1719893676": {
                    "open": "1.000255914767894",
                    "high": "1.000255914767894",
                    "low": "1.00005411553488",
                    "close": "1.000054115534880",
                    "volume": "44378.84650224885"
                }
            },
            {
                "1719893676-1719894576": {
                    "open": "1.000054115534880",
                    "high": "1.000254794891601",
                    "low": "1.00005411553488",
                    "close": "1.000055517247425",
                    "volume": "101105.04495481214"
                }
            },
            {
                "1719894576-1719895476": {
                    "open": "1.000055517247425",
                    "high": "1.000055517247425",
                    "low": "1.000018261479563",
                    "close": "1.000018261479563",
                    "volume": "854754.3625240533"
                }
            },
            {
                "1719895476-1719896376": {
                    "open": "1.000018261479563",
                    "high": "1.000182908657702",
                    "low": "0.99998300138422",
                    "close": "0.999983001384220",
                    "volume": "3908.162292280492"
                }
            },
            {
                "1719896376-1719897276": {
                    "open": "0.999983001384220",
                    "high": "1.000183126630358",
                    "low": "0.99998300138422",
                    "close": "1.000183126630358",
                    "volume": "2892.073651609367"
                }
            },
            {
                "1719897276-1719898176": {
                    "open": "1.000183126630358",
                    "high": "1.000183673901114",
                    "low": "1.000183126630358",
                    "close": "1.000183673901114",
                    "volume": "10279.463078363544"
                }
            },
            {
                "1719898176-1719899076": {
                    "open": "1.000183673901114",
                    "high": "1.000184527176884",
                    "low": "1.000183673901114",
                    "close": "1.000184527176884",
                    "volume": "10257.05235028864"
                }
            },
            {
                "1719899076-1719899976": {
                    "open": "1.000184527176884",
                    "high": "1.000185237424569",
                    "low": "1.000184527176884",
                    "close": "1.000185237424569",
                    "volume": "6837.031519407347"
                }
            },
            {
                "1719899976-1719900876": {
                    "open": "1.000185237424569",
                    "high": "1.000210934969175",
                    "low": "1.000010732165968",
                    "close": "1.000010732165968",
                    "volume": "309603.0859194277"
                }
            },
            {
                "1719900876-1719901776": {
                    "open": "1.000010732165968",
                    "high": "1.000210919318359",
                    "low": "1.000010732165968",
                    "close": "1.000210919318359",
                    "volume": "4400.248605542209"
                }
            },
            {
                "1719901776-1719902676": {
                    "open": "1.000210919318359",
                    "high": "1.000236334828425",
                    "low": "1.000011738932797",
                    "close": "1.000236334828425",
                    "volume": "31079.281491467533"
                }
            },
            {
                "1719902676-1719903576": {
                    "open": "1.000236334828425",
                    "high": "1.000238954731162",
                    "low": "1.000025310763003",
                    "close": "1.000025310763003",
                    "volume": "355390.77629832976"
                }
            },
            {
                "1719903576-1719904476": {
                    "open": "1.000025310763003",
                    "high": "1.000211857032402",
                    "low": "1.000025310763003",
                    "close": "1.000211857032402",
                    "volume": "3638.4157746311553"
                }
            },
            {
                "1719904476-1719905376": {
                    "open": "1.000211857032402",
                    "high": "1.000211942836073",
                    "low": "1.000011924096078",
                    "close": "1.000211942836073",
                    "volume": "356.23136868444374"
                }
            },
            {
                "1719905376-1719906276": {
                    "open": "1.000211942836073",
                    "high": "1.00023179463015",
                    "low": "1.000211942836073",
                    "close": "1.000231794630150",
                    "volume": "245181.03471087202"
                }
            },
            {
                "1719906276-1719907176": {
                    "open": "1.000231794630150",
                    "high": "1.00023179463015",
                    "low": "1.000032323352229",
                    "close": "1.000032323352229",
                    "volume": "410.2820940115456"
                }
            },
            {
                "1719907176-1719908076": {
                    "open": "1.000032323352229",
                    "high": "1.000032323352229",
                    "close": "1.000032323352229",
                    "low": "1.000032323352229",
                    "volume": "0"
                }
            },
            {
                "1719908076-1719908976": {
                    "open": "1.000032323352229",
                    "high": "1.000032323352229",
                    "low": "1.000032002186919",
                    "close": "1.000032002186919",
                    "volume": "7296.183238505319"
                }
            },
            {
                "1719908976-1719909876": {
                    "open": "1.000032002186919",
                    "high": "1.000231735904898",
                    "low": "1.000027121683681",
                    "close": "1.000027121683681",
                    "volume": "120930.64720990308"
                }
            },
            {
                "1719909876-1719910776": {
                    "open": "1.000027121683681",
                    "high": "1.000027121683681",
                    "close": "1.000027121683681",
                    "low": "1.000027121683681",
                    "volume": "0"
                }
            },
            {
                "1719910776-1719911676": {
                    "open": "1.000027121683681",
                    "high": "1.000224377157146",
                    "low": "1.000027121683681",
                    "close": "1.000224377157146",
                    "volume": "52606.93825649445"
                }
            },
            {
                "1719911676-1719912576": {
                    "open": "1.000224377157146",
                    "high": "1.000226658278937",
                    "low": "1.000224377157146",
                    "close": "1.000226658278937",
                    "volume": "3419.0174500962135"
                }
            },
            {
                "1719912576-1719913476": {
                    "open": "1.000226658278937",
                    "high": "1.000241158238946",
                    "low": "1.000226658278937",
                    "close": "1.000241158238946",
                    "volume": "172673.07621166538"
                }
            },
            {
                "1719913476-1719914376": {
                    "open": "1.000241158238946",
                    "high": "1.000241158238946",
                    "close": "1.000241158238946",
                    "low": "1.000241158238946",
                    "volume": "0"
                }
            },
            {
                "1719914376-1719915276": {
                    "open": "1.000241158238946",
                    "high": "1.000241158238946",
                    "close": "1.000241158238946",
                    "low": "1.000241158238946",
                    "volume": "0"
                }
            },
            {
                "1719915276-1719916176": {
                    "open": "1.000241158238946",
                    "high": "1.000241231262067",
                    "low": "1.000241158238946",
                    "close": "1.000241231262067",
                    "volume": "909.771914303281"
                }
            },
            {
                "1719916176-1719917076": {
                    "open": "1.000241231262067",
                    "high": "1.000241231262067",
                    "close": "1.000241231262067",
                    "low": "1.000241231262067",
                    "volume": "0"
                }
            },
            {
                "1719917076-1719917976": {
                    "open": "1.000241231262067",
                    "high": "1.000241502939886",
                    "low": "1.000035329217437",
                    "close": "1.000229580852706",
                    "volume": "165440.02967295557"
                }
            },
            {
                "1719917976-1719918876": {
                    "open": "1.000229580852706",
                    "high": "1.000229580852706",
                    "low": "1.000015283650519",
                    "close": "1.000015283650519",
                    "volume": "171163.48449330142"
                }
            },
            {
                "1719918876-1719919776": {
                    "open": "1.000015283650519",
                    "high": "1.000215357724655",
                    "low": "1.000015283650519",
                    "close": "1.000215357724655",
                    "volume": "1025.9211042218046"
                }
            },
            {
                "1719919776-1719920676": {
                    "open": "1.000215357724655",
                    "high": "1.000215357724655",
                    "close": "1.000215357724655",
                    "low": "1.000215357724655",
                    "volume": "0"
                }
            },
            {
                "1719920676-1719921576": {
                    "open": "1.000215357724655",
                    "high": "1.000215357724655",
                    "close": "1.000215357724655",
                    "low": "1.000215357724655",
                    "volume": "0"
                }
            },
            {
                "1719921576-1719922476": {
                    "open": "1.000215357724655",
                    "high": "1.000215357724655",
                    "low": "1.000015092655225",
                    "close": "1.000015092655225",
                    "volume": "7179.936645202048"
                }
            },
            {
                "1719922476-1719923376": {
                    "open": "1.000015092655225",
                    "high": "1.000015092655225",
                    "close": "1.000015092655225",
                    "low": "1.000015092655225",
                    "volume": "0"
                }
            },
            {
                "1719923376-1719924276": {
                    "open": "1.000015092655225",
                    "high": "1.000015092655225",
                    "close": "1.000015092655225",
                    "low": "1.000015092655225",
                    "volume": "0"
                }
            },
            {
                "1719924276-1719925176": {
                    "open": "1.000015092655225",
                    "high": "1.000015092655225",
                    "low": "0.999784219268914",
                    "close": "0.999784219268914",
                    "volume": "711.0530314153677"
                }
            },
            {
                "1719925176-1719926076": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            },
            {
                "1719926076-1719926976": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            },
            {
                "1719926976-1719927876": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            },
            {
                "1719927876-1719928776": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            },
            {
                "1719928776-1719929676": {
                    "open": "0.999784219268914",
                    "high": "0.999784219268914",
                    "close": "0.999784219268914",
                    "low": "0.999784219268914",
                    "volume": "0"
                }
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/dex/swap`

#### Request Body

<table><thead><tr><th width="185">Name</th><th width="142">Type</th><th>Description</th></tr></thead><tbody><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/8x8qwIu19Aq8uFsjOXvI">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutmin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000000000",
    "amountOutMin": "101368",
    "gas": "800000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xdc24316b9ae028f1497c275eb9192a3ea0f67022",
        "value": "0",
        "gas": "800000",
        "data": "0x3df0212400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000018bf8",
        "estimationCheck": true,
        "referenceId": "5442f5fe3f6b4613806976947814ffaa"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000000000",
    "amountOutMin": "101368",
    "gas": "800000",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0xdc24316b9ae028f1497c275eb9192a3ea0f67022",
        "value": "0",
        "gas": "800000",
        "data": "0x3df0212400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000018bf8",
        "gasPrice": "2694531336",
        "estimationCheck": true,
        "referenceId": "d44140cb13b34cfa8ac80723d137ed78"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1500",
    "amountIn": "1000000",
    "amountOutMin": "949846",
    "path": [
        "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "0xdAC17F958D2ee523a2206206994597C13D831ec7"
    ],
    "to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "deadline": "1711931771",
    "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
    "gas": "933376",
    "slippage": "4"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
        "to": "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7",
        "value": "0",
        "gas": "933376",
        "data": "0x3df021240000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000ea4c0",
        "estimationCheck": true,
        "referenceId": "ae3e92278be545419f28c0be62d2ba85"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/dex/addliquidity`

#### Request Body

| Name                                        | Type   | Description                                                                            |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details.           |
| path<mark style="color:red;">\*</mark>      | Array  | Comma separated values of token addresses.                                             |
| amountIn<mark style="color:red;">\*</mark>  | Array  | Amount of tokens to add liquidity.                                                     |
| amountOut<mark style="color:red;">\*</mark> | String | Amount of tokens accepted as a result of the transaction.                              |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                    |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                         |
| rpc                                         | String | Remote procedural call URL.                                                            |
| slippage                                    | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p> |
| gasPriority                                 | String | low, medium, or high.                                                                  |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "dexId":  "1500",
    "path": [ "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
    "amountIn":   [ "100000000000000", "10000000000000" ], 
    "amountOut":  "10136848990976",
    "gas":  "800000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "10000000000000",
        "gas": "800000",
        "data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300",
        "estimationCheck": true,
        "referenceId": "7429cadb5c14448cb10c042d417a383d"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": [
        "100000000000000",
        "10000000000000"
    ],
    "amountOut": "10136848990976",
    "gas": "800000",
    "gasPriority": "high",
    "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "10000000000000",
        "gas": "800000",
        "data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300",
        "gasPrice": "3394903250",
        "estimationCheck": true,
        "referenceId": "a9bf3d739c8a4bb983bbce931e9324c3"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With slippage:**&#x20;

```json
{
    "dexId":  "1500",
    "path": [ "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
    "amountIn":   [ "100000000000000", "10000000000000" ], 
    "amountOut":  "10136848990976",
    "gas":  "800000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "slippage":"2.0001"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "10000000000000",
        "gas": "800000",
        "data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000908f69d0683",
        "estimationCheck": true,
        "referenceId": "62f2c632bef1432b888ff5e7400a5900"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/dex/removeliquidity`

#### Request Body

| Name                                        | Type   | Description                                                                  |
| ------------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](broken://pages/8x8qwIu19Aq8uFsjOXvI) page for details. |
| path<mark style="color:red;">\*</mark>      | Array  | Comma separated values of token addresses.                                   |
| amountIn<mark style="color:red;">\*</mark>  | String | Amount of tokens to remove liquidity.                                        |
| amountOut<mark style="color:red;">\*</mark> | Array  | Amount of tokens accepted as a result of the transaction.                    |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                          |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.               |
| rpc                                         | String | Remote procedural call URL.                                                  |
| slippage                                    | String | Percentage of total value. By default, 1. 0 <= slippage value <= 10          |
| gasPriority                                 | String | low, medium, or high.                                                        |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000",
    "amountOut": [
        "100000000000000",
        "10000000000000"
    ],
    "gas": "800000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "0",
        "gas": "800000",
        "data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000",
        "estimationCheck": true,
        "referenceId": "9a2a1270a4034742a4e0aea62b75f6ec"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000",
    "amountOut": [
        "100000000000000",
        "10000000000000"
    ],
    "gas": "800000",
    "gasPriority": "medium",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "0",
        "gas": "800000",
        "data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000",
        "gasPrice": "2472048230",
        "estimationCheck": true,
        "referenceId": "9a0f0f02934b494ab3dcc2fd83daf4b8"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With Slippage:**

```json
{
    "dexId": "1500",
    "path": [
        "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
    ],
    "amountIn": "1000000",
    "amountOut": [
        "100000000000000",
        "10000000000000"
    ],
    "gas": "800000",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "slippage": "10"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With Slippage:**&#x20;

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
        "value": "0",
        "gas": "800000",
        "data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000051dac207a0000000000000000000000000000000000000000000000000000000082f79cd9000",
        "estimationCheck": true,
        "referenceId": "3cc2f1d70204481d80bd6866960d1885"
    }
}
```

{% endtab %}
{% endtabs %}


---

# 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.expand.network/integrations/dex-and-dex-aggregators/curve-v2.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.
