Development Talk base query

Streams DEX trades by token on Base as they happen, where currency smart contract is 0xB5d4…Eb7c and side type is sell: block time, block number, trade amount, currency symbol, smart contract, currency name, price in USD and 16 more fields.

By Divyasshree · saved 8 May 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  buybot_base: EVM(network: base) {
    DEXTradeByTokens(
      where: {TransactionStatus: {Success: true}, Trade: {Currency: {SmartContract: {in: ["0xB5d409F6E679B0f89A669ac9714173177683Eb7c"]}}, Side: {Type: {is: sell}}}}
    ) {
      Block {
        Time
        Number
      }
      Trade {
        Amount
        Currency {
          Symbol
          SmartContract
          Name
        }
        PriceInUSD
        Dex {
          ProtocolName
          SmartContract
        }
        Side {
          Amount
          AmountInUSD
          Currency {
            Symbol
            SmartContract
          }
          Buyer
          Seller
          Type
        }
        Buyer
        Seller
        AmountInUSD
      }
      Transaction {
        Maker: From
        Hash
        Type
        To
      }
      TransactionStatus {
        Success
      }
    }
  }
}

Similar queries