development talk query

Streams DEX trades by token on Solana as they happen, where side currency mint address is not So1111…1112 or 111111…1111 and side type is sell: trade amount, amount in USD, currency symbol, currency mint address, currency name, side account address, side token owner and 12 more fields.

By Divyasshree · saved 6 January 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  buybot_sol: Solana {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Trade: {Side: {Currency: {MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "11111111111111111111111111111111"]}}, Type: {is: sell}}}}
    ) {
      Trade {
        Amount
        AmountInUSD
        Currency {
          Symbol
          MintAddress
          Name
        }
        Side {
          Account {
            Address
            Token {
              Owner
            }
          }
          Amount
          AmountInUSD
          Currency {
            Symbol
            MintAddress
            Name
          }
          Order {
            BuySide
          }
          Type
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
      }
      Transaction {
        Result {
          Success
        }
        Signature
        Signer
      }
    }
  }
}

Similar queries