Last active
September 7, 2023 08:37
-
-
Save johnnieskywalker/a92e06747968065390843e015b52895f to your computer and use it in GitHub Desktop.
Query to https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v2 to get last trade on given pair
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| swaps(orderBy: timestamp, orderDirection: desc, where: { pair: "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852" }, first: 1) { | |
| id | |
| timestamp | |
| pair { | |
| token0 { | |
| symbol | |
| id | |
| } | |
| token1 { | |
| symbol | |
| id | |
| } | |
| } | |
| amount0In | |
| amount1In | |
| amount0Out | |
| amount1Out | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment