Uniswap V3 Pools
Get Pool Information
Return the data from a specific Uniswap V3 pool.
https://misti.up.railway.app/api/uniswap-v3/pool
?chainid=1
&address=0xff2bdf3044c601679dede16f5d4a460b35cebfee
&apikey=YourApiKeyToken
- Try this endpoint in your browser 🔗.
Query Parameters:
Parameter | Description |
---|---|
chainid | The chain ID of the blockchain (e.g., 1 for Ethereum mainnet). Table chain id |
address | The string representing the contract address of the Uniswap V3 pool. |
apikey | Your API key. |
Response:
The response will be a JSON object containing the Uniswap V3 pool's information.
{
"chain_id": 1,
"pool_address": "0xff2bdf3044c601679dede16f5d4a460b35cebfee",
"token0": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e",
"token1": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"fee_tier": 3000,
"initial_tick": -53229,
"initial_sqrt_price_x96": 5.53457559459772e+27,
"swap_count": 23430,
"liquidity": "1234567890123456789",
"sqrt_price_x96": "1461446703485210103287273052203988822378723970342",
"tick": -53229,
"token0_price": "0.0023456789",
"token1_price": "426.789012345",
"total_value_locked_usd": "1234567.89",
"volume_24h": "987654.32",
"fees_24h": "2962.96",
"created_at_timestamp": "2021-05-04T23:02:17+02:00",
"created_at_block_number": 12370088
}
Get Pool Swap History
Returns recent swaps for a Uniswap V3 pool.
https://misti.up.railway.app/api/uniswap-v3/pool/swaps
?chainid=1
&address=0xff2bdf3044c601679dede16f5d4a460b35cebfee
&limit=100
&offset=0
&apikey=YourApiKeyToken
Query Parameters:
Parameter | Description |
---|---|
chainid | The chain ID of the blockchain |
address | The Uniswap V3 pool contract address |
limit | Maximum number of swaps to return (default: 100, max: 1000) |
offset | Number of records to skip for pagination (default: 0) |
apikey | Your API key |
Response:
{
"pool_address": "0xff2bdf3044c601679dede16f5d4a460b35cebfee",
"swaps": [
{
"transaction_hash": "0x123...",
"block_number": 18500000,
"timestamp": "2023-10-15T14:30:45Z",
"sender": "0xabc...",
"recipient": "0xdef...",
"amount0": "-1000000000000000000",
"amount1": "2345678901234567890",
"sqrt_price_x96": "1461446703485210103287273052203988822378723970342",
"tick": -53229,
"liquidity": "1234567890123456789"
}
]
}
Get Pool Historical Data
Returns historical data for a Uniswap V3 pool with day or hour tracking periods.
https://misti.up.railway.app/api/uniswap-v3/pool/data
?chainid=1
&address=0xff2bdf3044c601679dede16f5d4a460b35cebfee
&period=d
&limit=30
&offset=0
&apikey=YourApiKeyToken
Query Parameters:
Parameter | Description |
---|---|
chainid | The chain ID of the blockchain |
address | The Uniswap V3 pool contract address |
period | Tracking period: d for daily data, h for hourly data |
limit | Maximum number of data points to return (default: 30, max: 1000) |
offset | Number of records to skip for pagination (default: 0) |
apikey | Your API key |
Response:
{
"pool_address": "0xff2bdf3044c601679dede16f5d4a460b35cebfee",
"period": "d",
"data": [
{
"id": "0xff2bdf3044c601679dede16f5d4a460b35cebfee-2023-10-15",
"date": "2023-10-15T00:00:00Z",
"pool": "0xff2bdf3044c601679dede16f5d4a460b35cebfee",
"liquidity": "1234567890123456789",
"sqrtPrice": "1461446703485210103287273052203988822378723970342",
"tick": -53229,
"volumeToken0": "1000000000000000000",
"volumeToken0D": "1.000000",
"volumeToken1": "2345678901234567890",
"volumeToken1D": "2345.678901",
"volumeUSD": 50000.25,
"volumePercentageChange": 15.5,
"collectedFeesToken0": "3000000000000000",
"collectedFeesToken1": "7037036704070370",
"collectedFeesUSD": 150.75,
"swapCount": "45",
"open": 0.000427,
"high": 0.000435,
"low": 0.000420,
"close": 0.000432,
"chainId": 1
},
{
"id": "0xff2bdf3044c601679dede16f5d4a460b35cebfee-2023-10-14",
"date": "2023-10-14T00:00:00Z",
"pool": "0xff2bdf3044c601679dede16f5d4a460b35cebfee",
"liquidity": "1234567890123456789",
"sqrtPrice": "1461446703485210103287273052203988822378723970342",
"tick": -53240,
"volumeToken0": "850000000000000000",
"volumeToken0D": "0.850000",
"volumeToken1": "1987654321098765432",
"volumeToken1D": "1987.654321",
"volumeUSD": 43500.10,
"volumePercentageChange": -8.2,
"collectedFeesToken0": "2550000000000000",
"collectedFeesToken1": "5962963188445940",
"collectedFeesUSD": 130.50,
"swapCount": "38",
"open": 0.000430,
"high": 0.000438,
"low": 0.000425,
"close": 0.000427,
"chainId": 1
}
]
}