This notebook demonstrates how to use Subgrounds
asynchronous queries to speed up your subgraph queries.
Uniswapv3 subgraph is used in this example to asynchronously query the swaps
entity, which is notoriously one of the
largest subgraph entities.
First setup a virtual environment:
source .venv/bin/activate```
After the virutal environment is active, install the following repositories:
```pip install git+https://github.com/0xPlaygrounds/subgrounds.git@feat/async
pip install polars
pip install asyncio
Run the query with python async_swaps.py
. Load the query results in a polars dataframe with python read_files.py