V2_Token_Price

Returns DEX trades by token on Ethereum, where currency smart contract is 0xc02a…6cc2 and side currency smart contract is 0xcd00…a8da: trade price, currency symbol and smart contract.

By Omkar_BQ · saved 8 February 2024 · run 25 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}, Side: {Currency: {SmartContract: {is: "0xcd0063eaf579951c8be2018345e1ac19bdcfa8da"}}}}}
    ) {
      Trade {
        Price(maximum: Block_Number)
        Currency{
          Symbol
          SmartContract
        }
      }
    }
  }
}

Similar queries