Get pair trades data just like dexcsreener

Streams DEX trades by token on Ethereum as they happen, where DEX smart contract is 0x757d…e9d6, sorted by block time: block time, trade amount, currency symbol, price in USD, protocol name, smart contract, side amount and 9 more fields.

By George · saved 24 July 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription{
  EVM(network: eth) {
    DEXTradeByTokens(
      orderBy: {ascending: Block_Time}
      where: {Trade: {Dex: {SmartContract: {is: "0x757d8d585ee1488097305bcb0fcec1ac4a55e9d6"}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Currency {
          Symbol
        }
        PriceInUSD
        Dex {
          ProtocolName
          SmartContract
        }
        Side {
          Amount
          AmountInUSD
          Currency {
            Symbol
          }
          Buyer
          Seller
        }
        Buyer
        Seller
      }
      Transaction {
        Maker: From
        Hash
        Type
      }
    }
  }
}

Similar queries