Price of a token

Returns 10 DEX trades by token on Solana, where currency mint address is 6D7NaB…i5Ui, sorted by block time: block time, trade amount, amount in USD, account address, trade price, price in USD, currency mint address and 14 more fields.

By Akshat · saved 20 May 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {ascending: Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: "6D7NaB2xsLd7cauWu1wKk6KBsJohJmP2qZH9GEfVi5Ui"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        AmountInUSD
        Account {
          Address
        }
        Price
        PriceInUSD
        Currency {
          MintAddress
          Name
          Native
          ProgramAddress
          Symbol
        }
        Dex {
          ProtocolFamily
          ProgramAddress
          ProtocolName
        }
        Side {
          Account {
            Address
          }
          Amount
          AmountInUSD
          Currency {
            MintAddress
            Name
            ProgramAddress
            Symbol
          }
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Similar queries