tradingstrategy-ai / web3-ethereum-defi

A Python library for trading automation on DeFi, data research and integration. Supporting Uniswap, Aave, Chainlink, USDC and other protocols.
https://tradingstrategy.ai
MIT License
579 stars 125 forks source link

Uniswap v3 new subgraph endpoints support #215

Closed AlexShashkov closed 1 week ago

AlexShashkov commented 1 month ago

After uniswap shut down open subgraph endpoints, users must use their api keys to access uniswap graphql. Also added support for other ethereum chains (ARB, OP, BASE)

jekkos commented 3 weeks ago

I have installed your repo using poetry but getting the following error when I call get_pool_state_at_block using my api key

TypeError: Object of type Contract is not JSON serializable

File ~/workspace/sdai-analysis/.venv/lib/python3.12/site-packages/requests/models.py:370, in PreparedRequest.prepare(self, method, url, headers, files, data, params, auth, cookies, hooks, json)
    368 self.prepare_headers(headers)
    369 self.prepare_cookies(cookies)
--> 370 self.prepare_body(data, files, json)
    371 self.prepare_auth(auth, url)

Any idea what could be the issue?

jekkos commented 3 weeks ago

Nevermind the issue is on my end. It seems to work fine.

miohtama commented 1 week ago

Looking this now - unfortunately Github notifications are too much spam, so was flying under the radar.

miohtama commented 1 week ago

0.26 released