PancakeSwap
/getprice
Returns the swap quotation for the given token pairs.
Query Parameters
Name
Type
Description
https://api.expand.network/dex/getprice?dexId=1200&path=0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c,0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82&amountIn=10000000000000000000{
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"
],
"amountsOut": [
"10000000000000000000",
"771915564765835452853"
]
}
}/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
/gethistoricaltimeseries
Get the historical time series transactions for a specific pool address.
Query Parameters
Name
Type
Description
/gethistoricaltransactions
Get the historical transactions focusing on swaps associated with a specific pool address.
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

