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.
/getprice
Returns the swap quotation for the given token pairs.
Query Parameters
Name
Type
Description
https://api.expand.network/dex/getprice?dexId=1500&path=0x6b175474e89094c44da98b954eedeac495271d0f,0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&amountIn=10000000000000000000{
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0x6b175474e89094c44da98b954eedeac495271d0f",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
],
"amountsOut": [
"10000000000000000000",
"9998342"
]
}
}/getuserliquidity
Returns the balance of a particular token pair of an account.
Query Parameters
Name
Type
Description
/getpoolliquidity
Returns the total liquidity for a specified pool.
Query Parameters
Name
Type
Description
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
Query Parameters
Name
Type
Description
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
Query Parameters
Name
Type
Description
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
Query Parameters
Name
Type
Description
/swap
Initiate a swap transaction on a specified DEX.
Request Body
Name
Type
Description
/addliquidity
Add liquidity to a specified pool in a specified DEX.
Request Body
Name
Type
Description
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
Request Body
Name
Type
Description
Last updated

