Git Product home page Git Product logo

Comments (6)

miohtama avatar miohtama commented on May 29, 2024

Related Uniswap v3 in-house project

https://github.com/Uniswap/smart-order-router/blob/main/src/routers/alpha-router/functions/get-candidate-pools.ts

from web3-ethereum-defi.

hieuh25 avatar hieuh25 commented on May 29, 2024

Search on Github and PyPI about Python and Uniswap v3 reveals that there isn't any one library that could do this at the moment. In short the code to get data out of Uniswap v3 is very fragmented for the time being.
Some notable ones are:

GraphQL based solution can use existing subgraphs like:

There are several onchain oracle solutions too, might not be very useful for above purpose:

from web3-ethereum-defi.

miohtama avatar miohtama commented on May 29, 2024

We need to decide if we take JSON-RPC event-based approach or GraphQL based approach.

  • GraphQL might be more generic and we can reuse existing graphs
  • GraphQL adds very complex dependency if we want (and we want) to be able to run locally

Let's tackle the Uni v3 deployment first.

  • We are currently only hosting Sushiswap contracts so we need to recreate the workflow to build in Uni v3 contracts compield
  • The same approach that we use for Sushiswap contracts likely works for Uniswap contracts as well - we pull them in as Git submodules, then use their native tooltchain to compile contracts and then copy over the compiled binary artifacts to our abi folder

from web3-ethereum-defi.

miohtama avatar miohtama commented on May 29, 2024

Some notebooks dealing with Uniswap v3 backtesting

https://github.com/nguyenhieuec/uniswap_backtester/blob/master/notebooks/monte_carlo_simulation.ipynb

from web3-ethereum-defi.

miohtama avatar miohtama commented on May 29, 2024

Also saw this

https://ethereum.stackexchange.com/a/123333/620

from web3-ethereum-defi.

hieuh25 avatar hieuh25 commented on May 29, 2024

Also saw this

https://ethereum.stackexchange.com/a/123333/620

I added a test for that method this morning: https://github.com/tradingstrategy-ai/eth-hentai/pull/6/files#diff-59cf62830f8e4e3131187561bfa500d2fdf0a14a48a9c33d91fbc1867a44ad80R111-R115
There are some good insights in the answer though

from web3-ethereum-defi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.