base trading api

Returns 10 DEX trades on Base, where block date since 2024-09-10: block time, transaction value, transaction hash, buy amount, buy currency name, buy currency symbol, buy smart contract and 9 more fields.

By gaurav · saved 21 November 2024 · run 12 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: base) {
    buyside: DEXTrades(
      limit:{count:10}
      where: {Block: {Date: {since: "2024-09-10"}},
        TransactionStatus: {Success: true}}
    ) {
      Block {
        Time
      }
      Transaction {
        Value
        Hash
      }
      Trade {
        Buy {
          Amount
          Currency {
            Name
            Symbol
            SmartContract
            Decimals
          }
          AmountInUSD
        }
        Sell {
          Amount
          Currency {
            Name
            SmartContract
            Symbol
            Decimals
          }
          AmountInUSD
        }
        Dex {
          ProtocolVersion
        }
      }
    }
  }
}

Similar queries