Price of a Token Against WSOL

Returns the latest DEX trade by token on Solana, where currency mint address is 2otVNp…XaUd and side currency mint address is So1111…1112: block time, transaction signature, market address, protocol name, protocol family, amount in USD, trade price and 8 more fields.

By Gaubler Webbers · saved 29 January 2025 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 1}
      where: {Trade: {Currency: {MintAddress: {is: "2otVNpcHXn9MKeDk3Zby5uanF3s7tki4toaJ3PZcXaUd"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
    ) {
      Block {
        allTime: Time
      }
      Transaction {
        Signature
      }
      Trade {
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        AmountInUSD
        Price
        PriceInUSD
        Amount
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Similar queries