new Base stream

Streams 500 DEX trades by token on Base as they happen, where side currency smart contract is not 0x4200…0006 or 0x8335…2913 and side type is sell, sorted by block time: block time, block number, trade amount, amount in USD, buyer, seller, price in USD and 16 more fields.

By Peter · saved 23 December 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The subscription

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

Similar queries