You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right, this is what I assumed. I'm curious, what is the real-world use case of such history of trades? Apart from academic interest, one can extrapolate the activity between two price points (in time) just using the L curve.
You might call ExactAmounts(block_parameter) and similar methods to build charts and stuff, for example. Obviously, you need local ethereum node and quite powerful host for that. Event log processing is out of scope for sure just because it is Python, you know.
Activity
liquid-8 commentedon Aug 25, 2021
It doesn't at the moment but it is possible to add this feature.
whittlem commentedon Aug 25, 2021
Thanks for the reply. If it could be added that would be great.
romanbsd commentedon Aug 26, 2021
@liquid-8 how would you do that? As far as I know uniswap doesn't have a history of trades. Are you referring to tracing the transactions with router?
ErikBjare commentedon Aug 26, 2021
You would have to trace back all the Swap events, which is a very resource intensive activity.
Example of a Swap event: https://etherscan.io/tx/0x506f2153271a75449d4b074614250ce3f5a8e93e105428bc02ccaf22062c1f9a#eventlog
romanbsd commentedon Aug 26, 2021
Right, this is what I assumed. I'm curious, what is the real-world use case of such history of trades? Apart from academic interest, one can extrapolate the activity between two price points (in time) just using the L curve.
liquid-8 commentedon Aug 26, 2021
You might call ExactAmounts(block_parameter) and similar methods to build charts and stuff, for example. Obviously, you need local ethereum node and quite powerful host for that. Event log processing is out of scope for sure just because it is Python, you know.