latest price of a token

Returns the latest DEX trade by token on Solana, where currency mint address is FbhypA…oP93 and trade price is above 0: block time, account address, account owner, decimals, currency mint address, currency name, currency symbol and 8 more fields.

By gaurav · saved 2 November 2024 · run 6 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 1}
      where: {Trade: {Currency: {MintAddress: {is: "FbhypAF9LL93bCZy9atRRfbdBMyJAwBarULfCK3roP93"}}, Price: {gt: 0}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        allTime: Time
      }
      Trade {
        Account {
          Address
          Owner
        }
        Currency {
          Decimals
          MintAddress
          Name
          Symbol
          SellerFeeBasisPoints
        }
        Side {
          Type
          Account {
            Address
            Owner
          }
        }
        Price
        Amount
        Side {
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Similar queries