Query for scans

Returns the latest 35 DEX trades by token on Polygon, where currency smart contract is 0x53e0…ad39: block time, trade amount, amount in USD, currency symbol and smart contract.

By Aleksey · saved 3 May 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query(
  $network: evm_network 
  $mempool: Boolean
	$currency_filter: EVM_DEXTradeByToken_Input_Trade_Currency_InputType
) {
  EVM(network: $network mempool: $mempool) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: 35}
    
      where: {
        
        Trade: {Currency: $currency_filter}
        
      }
    
    ) {
      
      Block {
        Time
      }
      
      Trade {
        Amount
        AmountInUSD
        Currency {
          Symbol
          SmartContract
        }
      }
      
    }
  }
}

Variables

{
  "network": "matic",
  "mempool": false,
  "currency_filter": { "SmartContract": { "is": "0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39"}}
}

Similar queries