Uniswap V3 Prices
Fetch 50 blocks of prices for USDC-WETH 5 bps Uniswap V3 Pool.
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/uniswap/v3/prices?chains=ETH&pool_address__in=0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640&from_block=-50&to_block=latest" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Result
[
...
{
"chain": 1,
"block_number": 18842690,
"block_hash": "0x1d233d789804a97d3bb53915ed4f5d596de75f869c9a6711ab90d7e239e3da5e",
"transaction_hash": "0x5f4bfe683768345f9f2557d2fc550761dfef888089c4c545729015a338853bca",
"transaction_index": 144,
"log_index": 223,
"pool_address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
"virtual0": 8.294887573219187e-15,
"virtual1": 2.2507602385291289e+52,
"price": 2313.345166196729,
"sender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"receiver": "0x60500e4c0351e96ecf38a9cd0f923cfde042525e",
"amount0": -5230.360226,
"amount1": 2.2620641068327454,
"liquidity": 13663748802166678000,
"tick": 198855,
"token0_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"token0_decimals": 6,
"token0_name": "USD Coin",
"token0_symbol": "USDC",
"token1_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"token1_decimals": 18,
"token1_name": "Wrapped Ether",
"token1_symbol": "WETH",
"timestamp": 1703263931
}
]
Query Parameters
v1/api/uniswap/v3/prices
chains
: This parameter is used to filter the data by specific blockchain networks.from_block
: This parameter is used to filter the data by a starting block number.to_block
: This parameter is used to filter the data by an ending block number.pool_address__in
: This parameter is used to filter the data by a list of pool addresses.pool_factory_address__in
: This parameter is used to filter the data by a list of pool factory addresses.virtual0__gte
: This parameter is used to filter the data by a value greater than or equal to the minimum virtual0 value.virtual0__lte
: This parameter is used to filter the data by a value less than or equal to the maximum virtual0 value.virtual1__gte
: This parameter is used to filter the data by a value greater than or equal to the minimum virtual1 value.virtual1__lte
: This parameter is used to filter the data by a value less than or equal to the maximum virtual1 value.price__gte
: This parameter is used to filter the data by a value greater than or equal to the minimum price value.price__lte
: This parameter is used to filter the data by a value less than or equal to the maximum price value.sender__in
: This parameter is used to filter the data by a list of sender addresses.receiver__in
: This parameter is used to filter the data by a list of receiver addresses.amount0__gte
: This parameter is used to filter the data by a value greater than or equal to the minimum amount0 value.amount0__lte
: This parameter is used to filter the data by a value less than or equal to the maximum amount0 value.amount1__gte
: This parameter is used to filter the data by a value greater than or equal to the minimum amount1 value.amount1__lte
: This parameter is used to filter the data by a value less than or equal to the maximum amount1 value.liquidity__gte
: This parameter is used to filter the data by a value greater than or equal to the minimum liquidity value.liquidity__lte
: This parameter is used to filter the data by a value less than or equal to the maximum liquidity value.tick__gte
: This parameter is used to filter the data by a value greater than or equal to the minimum tick value.tick__lte
: This parameter is used to filter the data by a value less than or equal to the maximum tick value.token0_address__in
: This parameter is used to filter the data by a list of token0 addresses.token0_symbol__in
: This parameter is used to filter the data by a list of token0 symbols.token1_address__in
: This parameter is used to filter the data by a list of token1 addresses.token1_symbol__in
: This parameter is used to filter the data by a list of token1 symbols.tokens_address__in
: This parameter is used to filter the data by a list of token addresses.tokens_symbol__in
: This parameter is used to filter the data by a list of token symbols.price__gte
: This parameter is used to filter the data by a value greater than or equal to the specified price.price__lte
: This parameter is used to filter the data by a value less than or equal to the specified price.