trading pairs on a specific dex

Returns 200 DEX trades by token on Ethereum, where DEX protocol family is Uniswap and block time after 2024-09-22: currency symbol, currency name, smart contract, fungible, side currency symbol, side currency name, side smart contract and count.

By Kshitij Mahajan · saved 29 October 2024 · Bitquery API v2

What it returns

Filters

The query

query DexMarkets($network: evm_network, $market: String, $time_3h_ago: DateTime) {
  EVM(network: $network) {
    DEXTradeByTokens(
      where: {Trade: {Dex: {ProtocolFamily: {is: $market}}}, Block: {Time: {after: $time_3h_ago}}}
      limit: {count: 200}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
          Fungible
        }
        Side {
          Currency {
            Symbol
            Name
            SmartContract
          }
        }
      }
      count
    }
  }
}

Variables

{
  "market": "Uniswap",
  "network": "eth",
  "time_10min_ago": "2024-09-22T13:21:39Z",
  "time_1h_ago": "2024-09-22T12:31:39Z",
  "time_3h_ago": "2024-09-22T10:31:39Z"
}

Similar queries