Example of token incorrectly parsed

Returns 100 DEX trades by token on Solana, where currency mint address is 7raHqU…7tcP, sorted by USD, highest first: currency symbol, currency name, currency mint address, fungible, decimals, trade amount, amount in USD and 9 more fields.

By Aleksey · saved 16 August 2024 · Bitquery API v2

What it returns

Filters

The query

query {
  Solana(aggregates: no) {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {
            MintAddress: {
              is: "7raHqUrZXAqtxFJ2wcmtpH7SQYLeN9447vD4KhZM7tcP"
            }
          }
        }
        Transaction: {Result: {Success: true}}}
      orderBy: {descendingByField: "usd"}
    limit: {count: 100}) {
      Trade {
        Currency {
          Symbol
          Name
          MintAddress
          Fungible
          Decimals
        }
                  Amount
          AmountInUSD
        Side {
        Currency{
          Symbol
          MintAddress
        }
          Amount
          AmountInUSD
      }
      }
      pairs: uniq(of: Trade_Side_Currency_MintAddress)
      dexes: uniq(of: Trade_Dex_ProgramAddress)
      amount: sum(of: Trade_Amount)
      usd: sum(of: Trade_AmountInUSD)
      count
    }
  }
}

Similar queries