solana stream buy and sell for specific wallets

Streams DEX trades on Solana as they happen: block time, method, protocol family, protocol name, buy amount, buy account address, buy currency name and 14 more fields.

By gaurav · saved 30 November 2024 · run 2 times · Bitquery API v2

What it returns

The subscription

subscription {
  Solana {
    buy: DEXTrades(where: {Trade: {Buy: {Account: {Owner: {in: ["", ""]}}}}}) {
      Block {
        Time
      }
      Instruction {
        Program {
          Method
        }
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          Account {
            Address
          }
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
            Fungible
            Uri
          }
        }
        Sell {
          Amount
          Account {
            Address
          }
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
            Fungible
            Uri
          }
        }
      }
      Transaction {
        Signature
      }
    }
    sell: DEXTrades(where: {Trade: {Sell: {Account: {Owner: {in: ["", ""]}}}}}) {
      Block {
        Time
      }
      Instruction {
        Program {
          Method
        }
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          Account {
            Address
          }
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
            Fungible
            Uri
          }
        }
        Sell {
          Amount
          Account {
            Address
          }
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
            Fungible
            Uri
          }
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries