Uniswap V2
/getprice
Returns the swap quotation for the given token pairs.
Query Parameters
Name
Type
Description
https://api.expand.network/dex/getprice?dexId=1000&path=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=10000000000000000000{
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xdac17f958d2ee523a2206206994597c13d831ec7"
],
"amountsOut": [
"10000000000000000000",
"15682130807"
]
}
}/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
/getpoolindividualliquidity
Returns all user addresses, block numbers, and token position details for a specified pool address.
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
/getpoolchartdata
Get the data for the pool and obtain the OHCL (Open, High, Close, Low) prices within the specified time interval.
Query Parameters
Name
Type
Description
/getpooltradedata
Get the trade data from the pool within a specified block range, for the specified event type
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

