Copy of Price based on DEX trades in USD with filter by currency

Returns DEX trades by token, where currency symbol is WETH and trade price asymmetry is at most 0.1: block time and median of trade price in USD.

By Aleksey · saved 25 April 2024 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query($filter_currency: EVM_DEXTradeByToken_Input_Trade_Currency_InputType ) {
  EVM {
    DEXTradeByTokens(
      where: {
      Trade: {
        Currency: $filter_currency 
        PriceAsymmetry: {
          le: 0.1
        }
      }
      
    }
    
    ) {
      Block {
        Time
      }
      median(of: Trade_PriceInUSD)
    }
  }
}

Variables

{"filter_currency": { "Symbol": {"is" : "WETH" }}
}

Similar queries