solana trade

Returns one DEX trade on Solana, where transaction signature is szvLfF…12Jf and market market address is 84akkj…KBSv: market address, sell amount, sell account, sell order mint, sell payer, sell order owner, sell account address and 22 more fields.

By gaurav · saved 16 April 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTrades(
      limit: {count: 1}
      where: {Transaction: {Result: {Success: true}, Signature: {is: "szvLfFxw2mL3ghnfJoGcsmWt5QcmrirnRJGE7wX2gfkRE7VzM5kiBGSdQmq8EJPHjmKJQKXCXkiu65FQrgD12Jf"}}, Trade: {Market: {MarketAddress: {is: "84akkjN4DYjczScmJbUYog5Eor9MGkJfype6qVQLKBSv"}}}}
    ) {
      Trade {
        Market {
          MarketAddress
        }
        Sell {
          Amount
          Order {
            Account
            Mint
            Payer
            Owner
          }
          Account {
            Address
            Token {
              Owner
            }
          }
          Currency {
            IsMutable
            Decimals
            Fungible
            MintAddress
          }
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Order {
            Account
            Payer
            Owner
            Mint
          }
          Amount
          Account {
            Address
            Token {
              Owner
            }
          }
          Currency {
            IsMutable
            Decimals
            Fungible
            MintAddress
          }
        }
      }
      Transaction {
        Signature
        Signer
        Fee
      }
    }
  }
}

Similar queries