trade for solana transaction

Returns DEX trades on Solana, where transaction signature is 5yXYFT…Dnmx: slot, buy account address, buy amount in USD, buy amount, buy currency mint address, buy currency symbol, buy currency name and 18 more fields.

By gaurav · saved 5 December 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: realtime) {
    DEXTrades(
      where: {Transaction: {Signature: {is: "5yXYFTA42aFc3KJjnaMayGq19jNckTgPAJPpgoKZ7bQZY64pSC7e6sBb5g3GrSioqWejF5CqyQf1RWz48RsXDnmx"}}}
    ) {
      Block {
        Slot
      }
      Trade {
        Buy {
          Account {
            Address
          }
          AmountInUSD
          Amount
          Currency {
            MintAddress
            Symbol
            Name
          }
          PriceInUSD
          Price
        }
        Sell {
          Account {
            Address
          }
          Amount
          AmountInUSD
          Currency {
            Name
            MintAddress
            Symbol
          }
          PriceInUSD
          Price
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
      }
      Transaction {
        Result {
          Success
        }
        Signature
        Signer
        Fee
        FeeInUSD
      }
    }
  }
}

Similar queries