php-example

Returns DEX trades on Solana, where DEX program address is 675kPX…1Mp8: buy account address, buy amount in USD, buy currency mint address, buy currency name, buy currency symbol, buy price in USD, program address and 9 more fields.

By Kshitij Mahajan · saved 13 August 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTrades(
      where: {Trade: {Dex: {ProgramAddress: {is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"}}}}
    ) {
      Trade {
        Buy {
          Account {
            Address
          }
          AmountInUSD
          Currency {
            MintAddress
            Name
            Symbol
          }
          PriceInUSD
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Sell {
          Account {
            Address
          }
          AmountInUSD
          Currency {
            MintAddress
            Name
            Symbol
          }
          PriceInUSD
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries