Price based on DEX trades in USD with filter

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 · Bitquery API v2

What it returns

Filters

The query

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

Variables

{"filter_symbol": { "is" : "WETH" }
}

Similar queries