trade index solana subscription

Streams DEX trades on Solana as they happen, where buy currency mint address is GHTsyY…sYK9 and sell currency mint address is GHTsyY…sYK9: program address, protocol family, protocol name, trade index, buy account address, buy amount, buy decimals and 17 more fields.

By gaurav · saved 22 November 2024 · run 8 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    Buyside: DEXTrades(
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "GHTsyY8doW5vziZXgpmkDdfAypMeFjeaVZ9HYpU7sYK9"}}}}}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Index
        Buy {
          Account {
            Address
          }
          Amount
          Currency {
            Decimals
            Symbol
            MintAddress
            Name
          }
          PriceAgaistSellCurrency: Price
        }
        Sell {
          Account {
            Address
          }
          Amount
          Currency {
            Decimals
            Symbol
            MintAddress
            Name
          }
          PriceAgaistBuyCurrency: Price
        }
      }
      Block {
        Time
        Height
      }
      Transaction {
        Signature
        FeePayer
        Signer
      }
    }
    Sellside: DEXTrades(
      where: {Trade: {Sell: {Currency: {MintAddress: {is: "GHTsyY8doW5vziZXgpmkDdfAypMeFjeaVZ9HYpU7sYK9"}}}}}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Account {
            Address
          }
          Amount
          Currency {
            Decimals
            Symbol
            MintAddress
            Name
          }
          PriceAgaistSellCurrency: Price
        }
        Index
        Sell {
          Account {
            Address
          }
          Amount
          Currency {
            Decimals
            Symbol
            MintAddress
            Name
          }
          PriceAgaistBuyCurrency: Price
        }
      }
      Block {
        Time
        Height
      }
      Transaction {
        Signature
        FeePayer
        Signer
        Result {
          Success(selectWhere: true)
        }
      }
    }
  }
}

Similar queries