Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea
.ipynb_checkpoints
data/
test/local_node/state/

Binary file added 0x85Cb0baB616Fe88a89A35080516a8928F38B518b_df.pkl
Binary file not shown.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,24 @@ using [The Graph](https://thegraph.com). Using a node to pull events was very sl
to complete prior to me wrapping up the code to pull indexed data from The Graph.

Much of main flow of code was hacked together in test files. More work is required to make this a
finished production product.
finished production product.

## Load Notebook

This repo uses [Poetry](https://python-poetry.org/) to manage dependencies within a python virtual
environment. You can install the dependencies and run [jupyter-lab](https://jupyter.org/) with the
comands.

```bash
poetry install
poetry run jupyter-lab
```

from jupyter-lab you can navigate to the [notebook](data-analysis.ipynb).

## Constructing data for a new pair

Code to scrape data is not production quality, it was assembled quickly and a testing framework was
used to execute the process. Data can be recreated using the tests in
[test_scanner_with_node.py](test/local_node/test_scanner_with_node.py). You will need to fill in
the node url, uniswap v2 pair address, and the block the pair was created (to save on time).
1,480 changes: 1,480 additions & 0 deletions data-analysis.ipynb

Large diffs are not rendered by default.

Loading