- Notifications
You must be signed in to change notification settings - Fork386
Cant get price from Uniswap V3 via multiple pools#257
-
Hi. Firstly, thanks a lot for you work, its great. We managed to track price from Uniswap v2. But with Uni v3 we have a huge issue: So, my question is expected: how can i get a price from uniswap v3 with optimal routing? The code below: address = None # or None if you're not going to make transactions total = {} qty = uniswap.get_price_output(usdc,coin_to_check, 1000 * 10 ** 8,fee=3000)print(qty) |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 1 reply
-
Hi, |
BetaWas this translation helpful?Give feedback.
All reactions
-
Wow, thanks. Hm, yeah, porting from Typescript to Python seems overwhelming( Means we are a little stuck. We tried to get quotes from 1inch via Node. But 1inch removed this function in new protocol, now its possible to get quotes only via API, and API has a really low limits :( |
BetaWas this translation helpful?Give feedback.
All reactions
-
Well, you could try to use mentioned package locally to get quotes. I'm not an expert, but it seems not that difficult for me to create such interaction via some REST API. |
BetaWas this translation helpful?Give feedback.