Uniswap V2
Last updated
Last updated
GET
https://api.expand.network/dex/getprice
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"
]
}
}
GET
https://api.expand.network/dex/getuserliquidity
Name | Type | Description |
---|---|---|
https://api.expand.network/dex/getuserliquidity?tokenA=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&tokenB=0x6b175474e89094c44da98b954eedeac495271d0f&address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1000
{
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11",
"liquidity": "2087379027763486",
"tokenA": "91297717639957",
"tokenB": "153006474077467970"
}
}
GET
https://api.expand.network/dex/getpoolliquidity
https://api.expand.network/dex/getpoolliquidity?poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
{
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "312219425553389289"
}
}
GET
https://api.expand.network/dex/gettokenliquidity
https://api.expand.network/dex/gettokenliquidity?poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
{
"status": 200,
"msg": "success",
"data": {
"WETH": "16984981267096993883931",
"USDT": "31586831096555"
}
}
GET
https://api.expand.network/dex/getliquidityholders
https://api.expand.network/dex/getliquidityholders?poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
{
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": "2572"
}
}
GET
https://api.expand.network/dex/getindividualposition
https://api.expand.network/dex/getindividualposition?dexId=1000&address=0x6Fb447Ae94F5180254D436A693907a1f57696900
{
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "2370404879481514",
"poolAddresses": {
"DAIWETH": {
"0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11": "2370404879481514"
}
}
}
}
GET
https://historicallp.api.expand.network/dex/getpoolindividualliquidity
https://historicallp.api.expand.network/dex/getpoolindividualliquidity?startPage=211&endPage=212&poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
{
"status": 200,
"msg": "success",
"data": {
"totalPages": "434",
"currentPages": "211-212",
"users": [
{
"userAddress": "0x5e34e63c37ce88e0d404c3ba149317ddf5f4ecaa",
"liquidityData": [
{
"blockNumber": "10975329",
"assets": {
"WETH": "87432734717490961",
"USDT": "30000000"
}
}
]
},
{
"userAddress": "0xf00a67934445876587ceda02728d493faa980b7a",
"liquidityData": [
{
"blockNumber": "10975289",
"assets": {
"WETH": "3494751089343567443",
"USDT": "1196562631"
}
}
]
},
{
"userAddress": "0xcd9410d3fe8916267f82dc13d7bbdba99e5643f7",
"liquidityData": [
{
"blockNumber": "10975229",
"assets": {
"WETH": "125975496436173808",
"USDT": "43126850"
}
}
]
},
{
"userAddress": "0xbffd0519e7bc626bf6ce4a31503bcb0a4075295b",
"liquidityData": [
{
"blockNumber": "10975228",
"assets": {
"WETH": "2999874086297596538",
"USDT": "1027021840"
}
}
]
},
{
"userAddress": "0x38d744e972419efe95df2aa6c047df9cd01579c5",
"liquidityData": [
{
"blockNumber": "10975194",
"assets": {
"WETH": "1425646890758547175",
"USDT": "488181735"
}
}
]
},
{
"userAddress": "0x40285fc5233fff0da4bf2c5f93e187fb4ab3306a",
"liquidityData": [
{
"blockNumber": "10975176",
"assets": {
"WETH": "1152868937561643841",
"USDT": "395000000"
}
}
]
}
]
}
}
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?poolAddress=0x517f9dd285e75b599234f7221227339478d0fcc8&dexId=1000
{
"status": 200,
"msg": "success",
"data": {
"pair": "DAI/MKR",
"priceData": [
{
"hash": "0x0700027e70d6d216810815c38a0959fe0635867ea2480ab1f6e20d3c98731ff0",
"timestamp": 1703748059,
"price": "0.0006244081987727642"
},
{
"hash": "0x1c3b182bb64097b756b03aaa3717663af8064ecf3e05f02f7b6e339785558f1f",
"timestamp": 1703747891,
"price": "0.0006261003865058129"
},
{
"hash": "0xec8964514a2cb94d565c84794cf7125333f2a18e376764fc24c5fd32df09a93e",
"timestamp": 1703747855,
"price": "0.0006274642197158615"
},
{
"hash": "0x4ece3e41b95e78c882ce79ec2fa80bd7eef0503a6d7b759bc3336cc9fc40867b",
"timestamp": 1703747843,
"price": "0.00062797052848499"
},
{
"hash": "0xf4e8eb0cc1661d952dc0e2d5d5ee2b16dd66b5f8a275fd3d148dd9ce53ed7964",
"timestamp": 1703746955,
"price": "0.0006318073557952554"
},
{
"hash": "0xcae75ad1f4b23672972cc793b8dfa97e5c257f368ed3b6d72afb1bcb92444ea5",
"timestamp": 1703746403,
"price": "0.0006311921656383271"
},
{
"hash": "0xbf1eef520c783cd699c1b040b8c1274c90ff4cc76b24994fb95123e3a9b360d5",
"timestamp": 1703746355,
"price": "0.0006303980131723315"
},
{
"hash": "0xddf411be6d49bcddcc306cae01f4a3d7bbee240a295ba18e1a762e3a3290f302",
"timestamp": 1703746319,
"price": "0.000629607991380723"
},
{
"hash": "0x31e8736e4e7eb1f862bfc4a66414859bb49102390bb97736facf4613035a81e5",
"timestamp": 1703745695,
"price": "0.0006261412353574351"
},
{
"hash": "0x6dea226fba19c1da6e96feb49511e1fef3a27cbded505e3d597bb9e5f5121e9e",
"timestamp": 1703745083,
"price": "0.0006301614630221084"
},
{
"hash": "0xc1ae0d5cb6774c9b76c3f005eb136b9fb5951c0d32f1027806d755ff45760b0d",
"timestamp": 1703744891,
"price": "0.000629113433416803"
},
{
"hash": "0x20937932802b6eb955192a589c7e0143127554fa60f05a429dc25f5cc6342f5e",
"timestamp": 1703743655,
"price": "0.0006273380063042033"
},
{
"hash": "0xaf2d9bfae18358fb785d4a7ae8b35099c63777c557e92db96c98bc0b41531071",
"timestamp": 1703743631,
"price": "0.0006255421068541817"
},
{
"hash": "0x161d09fdd5e30165040ebd65832b35337fd608d47e119a139f608b2045410409",
"timestamp": 1703742575,
"price": "0.0006215430273569083"
},
{
"hash": "0xc264388fba6edb499d5846a456217a4ddf0668d156356c8695ab34c6be55ce23",
"timestamp": 1703742515,
"price": "0.0006222533452384632"
}
]
}
}
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc&dexId=1000
{
"status": 200,
"msg": "success",
"data": {
"pair": "USDC/WETH",
"transactions": [
{
"transactionHash": "0xe02a5ced07a09949bb143486c5d57947d0b904d7ffa620637e2b11a4810ff645",
"transactionDetails": {
"blockHash": "0xa870d68aa85ea355176dd1f49912cb0df145a967a8a6789a2e9a9ca659aabfc5",
"blockNumber": "18879055",
"from": "0xcc4ea98876f3ee733712ac64137c34e637fc2dae",
"gas": "203074",
"gasPrice": "30150130093",
"maxFeePerGas": "41820000000",
"maxPriorityFeePerGas": "110000000",
"hash": "0xe02a5ced07a09949bb143486c5d57947d0b904d7ffa620637e2b11a4810ff645",
"input": "0xf305d719000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000e210966f48000000000000000000000000000000000000000000000000000000e0ef3985c30000000000000000000000000000000000000000000000164f0244c4ce3dffe6000000000000000000000000cc4ea98876f3ee733712ac64137c34e637fc2dae00000000000000000000000000000000000000000000000000000000658c7c4b",
"nonce": "212",
"to": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
"transactionIndex": "88",
"value": "413589505640828440000",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0xc01569d522e3ed0c193fbc1e6cf689d61ab1affdcdba0eab79fa09afe441415f",
"s": "0x4fe253f33af8c7efa878194c1d074b4b4ff662016eb47a7dd0d1948f30b45e73",
"yParity": "0x0"
}
}
]
}
}
GET
https://api.expand.network/dex/gethistoricalpoolchartdata
https://api.expand.network/dex/gethistoricalpoolchartdata?limit=100&interval=15m&dexId=1000&poolAddress=0x517F9dD285e75b599234F7221227339478d0FcC8
{
"status": 200,
"msg": "success",
"data": {
"pair": "DAI/MKR",
"chartData": [
{
"1717125831-1717131231": {
"open": "0.000362632162257",
"high": "0.000362632162257",
"low": "0.000361794833636",
"close": "0.000361794833636",
"volume": "116481.29177121137"
}
},
{
"1717131231-1717136631": {
"open": "0.000361794833636",
"high": "0.000365928955432",
"low": "0.000361794833636",
"close": "0.000365928955432",
"volume": "235921.476776501"
}
},
{
"1717136631-1717142031": {
"open": "0.000365928955432",
"high": "0.000365928955432",
"low": "0.000362839374156",
"close": "0.000364908316209",
"volume": "134774.33877705893"
}
},
{
"1717142031-1717147431": {
"open": "0.000364908316209",
"high": "0.000364994397092",
"low": "0.00036205860551",
"close": "0.000362058605510",
"volume": "107370.6898340171"
}
},
{
"1717147431-1717152831": {
"open": "0.000362058605510",
"high": "0.00036205860551",
"low": "0.000359033408766",
"close": "0.000359033408766",
"volume": "336427.99136697256"
}
},
{
"1717152831-1717158231": {
"open": "0.000359033408766",
"high": "0.000359033408766",
"low": "0.000356260063139",
"close": "0.000356260063139",
"volume": "298827.4098542738"
}
},
{
"1717158231-1717163631": {
"open": "0.000356260063139",
"high": "0.000361164606828",
"low": "0.000355876159312",
"close": "0.000361164606828",
"volume": "411818.4971458898"
}
},
{
"1717163631-1717169031": {
"open": "0.000361164606828",
"high": "0.000363586360976",
"low": "0.000361164606828",
"close": "0.000363586360976",
"volume": "261654.1491814648"
}
},
{
"1717169031-1717174431": {
"open": "0.000363586360976",
"high": "0.000367226232551",
"low": "0.000363586360976",
"close": "0.000365009517321",
"volume": "439832.30726375314"
}
},
{
"1717174431-1717179831": {
"open": "0.000365009517321",
"high": "0.000365009517321",
"low": "0.000363441412141",
"close": "0.000363441412141",
"volume": "149974.2380735921"
}
},
{
"1717179831-1717185231": {
"open": "0.000363441412141",
"high": "0.000363441412141",
"low": "0.00036319351977",
"close": "0.000363193519770",
"volume": "34293.96745051358"
}
},
{
"1717185231-1717190631": {
"open": "0.000363193519770",
"high": "0.00036319351977",
"low": "0.000362332243839",
"close": "0.000362332243839",
"volume": "92751.61460970972"
}
},
{
"1717190631-1717196031": {
"open": "0.000362332243839",
"high": "0.000365110121117",
"low": "0.000362332243839",
"close": "0.000365110121117",
"volume": "84731.33451069353"
}
},
{
"1717196031-1717201431": {
"open": "0.000365110121117",
"high": "0.000370459107108",
"low": "0.000365110121117",
"close": "0.000370459107108",
"volume": "562503.5842784377"
}
},
{
"1717201431-1717206831": {
"open": "0.000370459107108",
"high": "0.000370787680558",
"low": "0.000370459107108",
"close": "0.000370787680558",
"volume": "40674.1448916809"
}
},
{
"1717206831-1717212231": {
"open": "0.000370787680558",
"high": "0.000370787680558",
"close": "0.000370787680558",
"low": "0.000370787680558",
"volume": "0"
}
},
{
"1717212231-1717217631": {
"open": "0.000370787680558",
"high": "0.000370787680558",
"low": "0.000367479192595",
"close": "0.000367479192595",
"volume": "141155.25179660812"
}
},
{
"1717217631-1717223031": {
"open": "0.000367479192595",
"high": "0.000367479192595",
"low": "0.000367318759906",
"close": "0.000367318759906",
"volume": "6405.706904196158"
}
},
{
"1717223031-1717228431": {
"open": "0.000367318759906",
"high": "0.000367318759906",
"close": "0.000367318759906",
"low": "0.000367318759906",
"volume": "0"
}
},
{
"1717228431-1717233831": {
"open": "0.000367318759906",
"high": "0.000367318759906",
"low": "0.000367258190562",
"close": "0.000367258190562",
"volume": "6561.94365795704"
}
},
{
"1717233831-1717239231": {
"open": "0.000367258190562",
"high": "0.000370245962397",
"low": "0.000367258190562",
"close": "0.000370245962397",
"volume": "91673.4718149821"
}
},
{
"1717239231-1717244631": {
"open": "0.000370245962397",
"high": "0.000372848707784",
"low": "0.000370245962397",
"close": "0.000372848707784",
"volume": "302051.36778228875"
}
},
{
"1717244631-1717250031": {
"open": "0.000372848707784",
"high": "0.000373255574321",
"low": "0.000372848707784",
"close": "0.000373255574321",
"volume": "15550.594379299635"
}
},
{
"1717250031-1717255431": {
"open": "0.000373255574321",
"high": "0.000373527782488",
"low": "0.000371102274044",
"close": "0.000371102274044",
"volume": "61022.01807920491"
}
},
{
"1717255431-1717260831": {
"open": "0.000371102274044",
"high": "0.000373300780092",
"low": "0.000371102274044",
"close": "0.000373300780092",
"volume": "32143.056071166695"
}
},
{
"1717260831-1717266231": {
"open": "0.000373300780092",
"high": "0.000373593989008",
"low": "0.000373300780092",
"close": "0.000373593989008",
"volume": "29080.840115908824"
}
},
{
"1717266231-1717271631": {
"open": "0.000373593989008",
"high": "0.000374035210903",
"low": "0.000373593989008",
"close": "0.000374035210903",
"volume": "52720.216943570405"
}
},
{
"1717271631-1717277031": {
"open": "0.000374035210903",
"high": "0.000374274458383",
"low": "0.000374035210903",
"close": "0.000374274458383",
"volume": "6877.1558868414995"
}
},
{
"1717277031-1717282431": {
"open": "0.000374274458383",
"high": "0.000374274458383",
"low": "0.000371999332044",
"close": "0.000371999332044",
"volume": "13045.768939033636"
}
},
{
"1717282431-1717287831": {
"open": "0.000371999332044",
"high": "0.000371999332044",
"low": "0.000371909662179",
"close": "0.000371909662179",
"volume": "5780.75988915263"
}
},
{
"1717287831-1717293231": {
"open": "0.000371909662179",
"high": "0.000371909662179",
"low": "0.000370992647421",
"close": "0.000370992647421",
"volume": "97770.29458585857"
}
},
{
"1717293231-1717298631": {
"open": "0.000370992647421",
"high": "0.000373227199414",
"low": "0.000370992647421",
"close": "0.000373227199414",
"volume": "7193.474706512013"
}
},
{
"1717298631-1717304031": {
"open": "0.000373227199414",
"high": "0.000373797899718",
"low": "0.000373227199414",
"close": "0.000373797899718",
"volume": "59414.48037483847"
}
},
{
"1717304031-1717309431": {
"open": "0.000373797899718",
"high": "0.000374304087103",
"low": "0.000373797899718",
"close": "0.000374304087103",
"volume": "54211.467425947136"
}
},
{
"1717309431-1717314831": {
"open": "0.000374304087103",
"high": "0.00037558397742",
"low": "0.000374304087103",
"close": "0.000375583977420",
"volume": "129562.12395260207"
}
},
{
"1717368831-1717374231": {
"open": "0.000378870323560",
"high": "0.00037887032356",
"low": "0.000378289301449",
"close": "0.000378289301449",
"volume": "57860.0799234203"
}
},
]
}
}
GET
https://historicaltrade.api.expand.network/dex/getpoolchartdata
https://historicaltrade.api.expand.network/dex/getpoolchartdata?dexId=1000&poolAddress=0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc&interval=60
{
"status": 200,
"msg": "success",
"data": {
"pair": "USDC/WETH",
"chartData": {
"18882523 to 18882800": [
{
"open_price": "419005433942909",
"close_price": "419447697581705",
"low_price": "418943818861548",
"high_price": "422263827518504",
"transactions": [
{
"blockNumber": "18882529",
"price": "418986597113367",
"amount": {
"token0": "2400000000",
"token1": "1005567833072081114"
}
},
{
"blockNumber": "18882531",
"price": "421498241454276",
"amount": {
"token0": "679221347",
"token1": "286290603318704585"
}
},
{
"blockNumber": "18882538",
"price": "418975454284176",
"amount": {
"token0": "376508407",
"token1": "157747780864636534"
}
},
{
"blockNumber": "18882543",
"price": "418968454985399",
"amount": {
"token0": "513835000",
"token1": "215280656067422305"
}
},
{
"blockNumber": "18882543",
"price": "418963677671102",
"amount": {
"token0": "93100000",
"token1": "39005518391179607"
}
},
{
"blockNumber": "18882548",
"price": "418960589212921",
"amount": {
"token0": "300000000",
"token1": "125688176763876449"
}
},
{
"blockNumber": "18882560",
"price": "418954948262823",