Track Trades Of A Token On A DEX

Streams DEX trades on Solana as they happen, where buy currency mint address is So1111…1112 and DEX program address is whirLb…tyCc: block height, block time, buy amount, buy amount in USD, buy currency name, buy currency symbol, protocol name and 4 more fields.

By Ashish Bhintade · saved 10 June 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}, Dex: {ProgramAddress: {is: "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"}}}}
    ) {
      Block {
        Height
        Time
      }
      Trade {
        Buy {
          Amount
          AmountInUSD
          Currency {
            Name
            Symbol
          }
        }
        Dex {
          ProtocolName
        }
        Sell {
          Amount
          AmountInUSD
          Currency {
            Name
            Symbol
          }
        }
      }
    }
  }
}

Similar queries