Query for scans

Returns the latest 35 DEX trades by token on Polygon, where currency smart contract is 0x53e0…ad39 and trade amount in USD is at least 1000.0: 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
  $amount_usd_filter: EVM_Amount_With_Decimals
) {
  EVM(network: $network mempool: $mempool) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: 35}
    
      where: {
        
        Trade: {
          Currency: $currency_filter
          AmountInUSD: $amount_usd_filter
          
        }
        
      }
    
    ) {
      
      Block {
        Time
      }
      
      Trade {
        Amount
        AmountInUSD
        Currency {
          Symbol
          SmartContract
        }
        
      }
      
    }
  }
}

Variables

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

Similar queries