Skip to content

Instantly share code, notes, and snippets.

@buddies2705
Created October 16, 2020 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buddies2705/15e393b561c3503315ee40b5d58c9e58 to your computer and use it in GitHub Desktop.
Save buddies2705/15e393b561c3503315ee40b5d58c9e58 to your computer and use it in GitHub Desktop.
Latest trades on a DEX Protocol
{
ethereum(network: ethereum) {
dexTrades(options: {limit: 10, desc: "trades"}, protocol:
{is: "Uniswap v2"}) {
protocol
buyCurrency {
symbol
address
}
buyAmount
sellCurrency {
symbol
address
}
sellAmount
trades: count
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment