btc usdt usdc dai token trades count

Returns one DEX trade on Ethereum, where buy currency smart contract is 0x2260…C599, sell currency smart contract is 0xdac1…1ec7 and block date after 2016-01-01, sorted by block time: buy price in USD and block time.

By Kshitij Mahajan · saved 29 April 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: archive) {
    DEXTrades(
      where: {Block: {Date: {after: "2016-01-01"}}, Trade: {Buy: {Currency: {SmartContract: {is: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}}}, Sell: {Currency: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}}}
      orderBy: {ascending: Block_Time}
      limit: {count: 1}
    ) {
      Trade {
        Buy {
          PriceInUSD
        }
      }
      Block{
        Time
      }
    }
  }
}

Similar queries