Skip to content

A demo on fetching response via graphql from TheGraph for Uniswap and storing it in MySQL

Notifications You must be signed in to change notification settings

ya0002/TheGraph-to-MySQL

Repository files navigation

TheGraph-to-MySQL

A demo on fetching response via graphql from TheGraph for UNI/WETH pair and storing it in MySQL.

main.py : dump the response of TheGraph(a dict) to MySQL.

pair_graph_query.py : send graphql query and get response from TheGraph.

db.py : MySQL db's table structure.

To run

$ git clone https://github.com/ya0002/TheGraph-to-MySQL.git

Go to the directory of the repo

$ docker compose up -d

About

A demo on fetching response via graphql from TheGraph for Uniswap and storing it in MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published