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.
Supported Mainnet Token Pairs
steth - ETH/stETH 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
threepool - DAI/USDC/USDT 0x6b175474e89094c44da98b954eedeac495271d0f, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xdac17f958d2ee523a2206206994597c13d831ec7
FRAXsDAI - FRAX/sDAI 0x853d955acef822db058eb8505911ed77f175b99e, 0x83f20f44975d03b1b09e64809b757c47f942beea
FRAXPYUSD - FRAX/PYUSD 0x853d955acef822db058eb8505911ed77f175b99e, 0x6c3ea9036406852006290770bedfcaba0e23a0e8
frxETHWETH - WETH/frxETH 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, 0x5e8422345238f34275888049021821e8e08caa1f
stETHng - ETH/stETH 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
fraxusdc - FRAX/USDC 0x853d955acef822db058eb8505911ed77f175b99e, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
tricrypto2 - USDT/WBTC/WETH 0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
TriCryptoUSDT - USDT/WBTC/WETH 0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
stETHfrxETH - stETH/frxETH 0xae7ab96520de3a18e5e111b5eaab095312d7fe84, 0x5e8422345238f34275888049021821e8e08caa1f
alUSDFRAXBP - alUSD/FRAX/BASIS 0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 0x3175df0976dfa876431c2e9ee6bc45b65d3473cc
PayPool - PYUSD/USDC 0x6c3ea9036406852006290770bedfcaba0e23a0e8, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
mkUSDUSDC - mkUSD/USDC 0x4591dbff62656e7859afe5e45f6f47d3669fbb28, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
TriCryptoUSDC - USDC/WBTC/WETH 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
frxeth - ETH/frxETH 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x5e8422345238f34275888049021821e8e08caa1f
OETH - ETH/OETH 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3
cvxCrvCrv - cvxCrv/Crv 0xd533a949740bb3306d119cc777fa900ba034cd52, 0x62b9c7356a2dc64a1969e19c23e4f579f9810aa7
ETHxwstETH - ETHx/wstETH 0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 0xa35b1b31ce002fbf2058d22f30f95d405200a15b
cvxFxsFxs - cvxFXS/FXS 0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0, 0xfeef77d3f69374f66429c91d732a244f074bdf74
FRAXFPI - FRAX/FPI 0x853d955acef822db058eb8505911ed77f175b99e, 0x5ca135cb8527d76e932f34b5145575f9d8cbe08e
mim - MIM/DAI/USDC/USDT 0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 0x6c3f90f043a72fa612cbac8115ee7e52bde6e490
crvUSDUSDC - USDC/crvUSD 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
alETHfrxETH - alETH/frxETH 0x0100546f2cd4c9d97f798ffc9755e47865ff7ee6, 0x5e8422345238f34275888049021821e8e08caa1f
aave - DAI/USDC/USDT 0x028171bca77440897b824ca71d1c56cac55b68a3, 0xbcca60bb61934080951369a648fb03df4f96263c, 0x3ed3b47dd13ec9a98b44e6204a523e766b225811
crvUSDUSDT - USDT/crvUSD 0xdac17f958d2ee523a2206206994597c13d831ec7, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
eursusd - EURS/USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 0xdb25f211ab05b1c97d595516f45794528a807ad8
pufETHwstETH - pufETH/wstETH 0xd9a442856c234a39a81a089c06451ebaa4306a72 0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
pxETHWETH - pxETH/WETH 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 0x04c154b66cb340f3ae24111cc767e0184ed00cc6
agEUREUROC - agEUR/EURC 0x1a7e4e63778b4f12a199c062f3efdd288afcbce8 0x1abaea1f7c830bd89acc67ec4af516284b1bc33c
rUSDYUSDC - rUSDY/USDC 0xaf37c1167910ebc994e266949387d2c7c326b879 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
/getprice
Returns the swap quotation for the given token pair.
GET
https://api.expand.network/dex/getprice
Query Parameters
rpc
String
Remote procedural call URL.
path*
String
Comma separated values of token addresses whose price is to be fetched.
amountIn*
String
Amount of token.
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.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
rpc
String
Remote procedural call URL.
tokenA*
String
Address of token.
address*
String
Public address of liquidity provider.
dexId*
String
Refer to DEX ID page for details.
tokenB*
String
Address of token.
tokenC
String
Address of token.
tokenD
String
Address of token.
https://api.expand.network/dex/getuserliquidity?address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1500&tokenA=0x6b175474e89094c44da98b954eedeac495271d0f&tokenB=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&tokenC=0xdac17f958d2ee523a2206206994597c13d831ec7
{
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0x6c3f90f043a72fa612cbac8115ee7e52bde6e490",
"tokenA": "0",
"tokenB": "0",
"tokenC": "0",
"liquidity": "0"
}
}
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
rpc
String
Remote procedural call URL.
poolAddress*
String
Pool address whose liquidity is to be fetched.
dexId*
String
Refer to DEX ID page for details.
https://api.expand.network/dex/getpoolliquidity?dexId=1500&poolAddress=0xc5424b857f758e906013f3555dad202e4bdb4567
{
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "6906912970691008135418"
}
}
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
rpc
String
Remote procedural call URL.
poolAddress*
String
The pool address.
dexId*
String
Refer to DEX ID page for details.
https://api.expand.network/dex/gettokenliquidity?dexId=1500&poolAddress=0xdebf20617708857ebe4f679508e7b7863a8a8eee
{
"status": 200,
"msg": "success",
"data": {
"aDAI": "4410821251140993186643520",
"aUSDC": "4427459634996",
"aUSDT": "12345097594917"
}
}
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
rpc
String
Remote procedural call URL.
poolAddress*
String
The pool address.
dexId*
String
Refer to DEX ID page for details.
https://api.expand.network/dex/getliquidityholders?dexId=1500&poolAddress=0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca
{
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": 1467
}
}
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
GET
https://api.expand.network/dex/getindividualposition
Query Parameters
rpc
String
Remote procedural call URL.
address*
String
The public address of the liquidity holder.
dexId*
String
Refer to DEX ID page for details.
https://api.expand.network/dex/getindividualposition?address=0x9bb98140F36553dB71fe4a570aC0b1401BC61B4F&dexId=1500
{
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "1807177360143696334",
"poolAddresses": {
"DAIUSDCUSDT": {
"0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7": "1797671437464531430"
},
"ETHstETH": {
"0xdc24316b9ae028f1497c275eb9192a3ea0f67022": "9505922679164904"
}
}
}
}
/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.
GET
https://api.expand.network/dex/gethistoricalpoolchartdata
Query Parameter
dexId*
String
Refer to DEX ID page for details.
interval
String
15 mins(by default), 30 mins, 60 mins, and 90 mins.
limit
String
No of iteration. Start limit is 100 and maximum limit is 500.
poolAddress*
String
Pool address whose transactions is to be fetched. Note: We supported pool mentioned in the list.
rpc
String
Remote procedural call URL.
https://api.expand.network/dex/gethistoricalpoolchartdata?dexId=1500&poolAddress=0xdc24316b9ae028f1497c275eb9192a3ea0f67022&interval=15m&limit=100
{
"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"
}
}
]
}
}
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
dexId*
String
Refer to the DEX ID page for details.
path*
Array
Comma-separated values of token addresses, inside an array, to swap.
amountIn*
String
Amount of token to be swapped.
amountOutmin*
String
Minimum amount accepted as a result of swap.
from*
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.
gasPriority
String
low, medium, or high.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 100
involveBaseToken
String
If a base token is involved in the swap;
0
for erc20 -> erc20,
1
for base -> erc20 ("from" address should be of equivalent wrapped token), 2
for erc20 -> base ("to" address should be of equivalent wrapped token).
By default, 0
.
{
"dexId": "1500",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000000000",
"amountOutMin": "101368",
"gas": "800000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xdc24316b9ae028f1497c275eb9192a3ea0f67022",
"value": "0",
"gas": "800000",
"data": "0x3df0212400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000018bf8",
"estimationCheck": true,
"referenceId": "5442f5fe3f6b4613806976947814ffaa"
}
}
With gasPriority:
{
"dexId": "1500",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000000000",
"amountOutMin": "101368",
"gas": "800000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gasPriority": "medium"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xdc24316b9ae028f1497c275eb9192a3ea0f67022",
"value": "0",
"gas": "800000",
"data": "0x3df0212400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000018bf8",
"gasPrice": "2694531336",
"estimationCheck": true,
"referenceId": "d44140cb13b34cfa8ac80723d137ed78"
}
}
With Slippage:
{
"dexId": "1500",
"amountIn": "1000000",
"amountOutMin": "949846",
"path": [
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"deadline": "1711931771",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"gas": "933376",
"slippage": "4"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"to": "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7",
"value": "0",
"gas": "933376",
"data": "0x3df021240000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000ea4c0",
"estimationCheck": true,
"referenceId": "ae3e92278be545419f28c0be62d2ba85"
}
}
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
dexId*
String
Refer to the DEX ID page for details.
path*
Array
Comma separated values of token addresses.
amountIn*
Array
Amount of tokens to add liquidity.
amountOut*
String
Amount of tokens accepted as a result of the transaction.
from*
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 <= 100
gasPriority
String
low, medium, or high.
{
"dexId": "1500",
"path": [ "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": [ "100000000000000", "10000000000000" ],
"amountOut": "10136848990976",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
"value": "10000000000000",
"gas": "800000",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300",
"estimationCheck": true,
"referenceId": "7429cadb5c14448cb10c042d417a383d"
}
}
With gasPriority:
{
"dexId": "1500",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": [
"100000000000000",
"10000000000000"
],
"amountOut": "10136848990976",
"gas": "800000",
"gasPriority": "high",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
"value": "10000000000000",
"gas": "800000",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300",
"gasPrice": "3394903250",
"estimationCheck": true,
"referenceId": "a9bf3d739c8a4bb983bbce931e9324c3"
}
}
With slippage:
{
"dexId": "1500",
"path": [ "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": [ "100000000000000", "10000000000000" ],
"amountOut": "10136848990976",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage":"2.0001"
}
With slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
"value": "10000000000000",
"gas": "800000",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000908f69d0683",
"estimationCheck": true,
"referenceId": "62f2c632bef1432b888ff5e7400a5900"
}
}
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
dexId*
String
Refer to the DEX ID page for details.
path*
Array
Comma separated values of token addresses.
amountIn*
String
Amount of tokens to remove liquidity.
amountOut*
Array
Amount of tokens accepted as a result of the transaction.
from*
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.
{
"dexId": "1500",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000",
"amountOut": [
"100000000000000",
"10000000000000"
],
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
"value": "0",
"gas": "800000",
"data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000",
"estimationCheck": true,
"referenceId": "9a2a1270a4034742a4e0aea62b75f6ec"
}
}
With gasPriority:
{
"dexId": "1500",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000",
"amountOut": [
"100000000000000",
"10000000000000"
],
"gas": "800000",
"gasPriority": "medium",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
"value": "0",
"gas": "800000",
"data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000",
"gasPrice": "2472048230",
"estimationCheck": true,
"referenceId": "9a0f0f02934b494ab3dcc2fd83daf4b8"
}
}
With Slippage:
{
"dexId": "1500",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000",
"amountOut": [
"100000000000000",
"10000000000000"
],
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage": "10"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x21e27a5e5513d6e65c4f830167390997aa84843a",
"value": "0",
"gas": "800000",
"data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000051dac207a0000000000000000000000000000000000000000000000000000000082f79cd9000",
"estimationCheck": true,
"referenceId": "3cc2f1d70204481d80bd6866960d1885"
}
}
Last updated