subs all trades

Streams the latest DEX trades by token on Ethereum as they happen: block time, transaction hash, buyer, seller, trade amount, amount in USD, price in USD and 15 more fields.

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

What it returns

The subscription

subscription getTokensTrades(
        $network: evm_network!
      ) {
        EVM(network: $network) {
          DEXTradeByTokens(
            orderBy: { descending: Block_Time }
            where: {
              Trade: { Success: true }
            }
          ) {
            Block {
              Time
            }
            Transaction {
              Hash
            }
            Trade {
              Buyer
              Seller
              Amount
              AmountInUSD
              PriceInUSD
              Currency {
                Symbol
                SmartContract
                Name
                Decimals
              }
              Side {
                Type
                Currency {
                  Symbol
                  SmartContract
                  Name
                  Decimals
                }
                AmountInUSD
                Amount
              }
              Dex {
                ProtocolFamily
                ProtocolName
                Delegated
                DelegatedTo
              }
            }
          }
        }
      }

Variables

{
  "network": "ethereum"
}

Similar queries