Any-Keyword-Example

Returns 10 DEX trades, where buy currency smart contract is 0xC02a…6Cc2 and sell currency smart contract is 0x4eca…05c6: buy currency symbol, buy smart contract, buy currency name, sell smart contract, sell currency symbol and sell currency name.

By Kshitij Mahajan · saved 8 July 2024 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM {
    DEXTrades(
      where: {
        any: {
          Trade: {
            Buy: {
              Currency: {
                SmartContract: {
                  is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
                }
              }
            },
            Sell: {
              Currency: {
                SmartContract: {
                  is: "0x4ecaba5870353805a9f068101a40e0f32ed605c6"
                }
              }
            }
          }
        }
      }
      limit: {count: 10}
    ) {
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
            Name
          }
        }
        Sell {
          Currency {
            SmartContract
            Symbol
            Name
          }
        }
      }
    }
  }
}

Similar queries