get Market address CP

Returns one DEX trade by token on Solana, where currency mint address is JUPyiw…DvCN and block time after 2025-05-13, sorted by USD, highest first: currency symbol, currency name, currency mint address, fungible, market address, side currency symbol, side currency name and 5 more fields.

By DeAura · saved 13 May 2025 · run 36 times · Bitquery API v2

What it returns

Filters

The query

query ($token: String, $time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "usd"}
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {Symbol: {includesCaseInsensitive: "WSOL"}}}}, Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}}
      limit: {count: 1}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          MintAddress
          Fungible
        }
        Market {
          MarketAddress
        }
        Side {
          Currency {
            Symbol
            Name
            MintAddress
          }
        }
        price_usd: PriceInUSD(maximum: Block_Slot)
        price_last: Price(maximum: Block_Slot)
      }
      usd: sum(of: Trade_AmountInUSD)
      count
    }
  }
}

Variables

{
  "network": "solana",
  "token": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",  
  "time_ago": "2025-05-13T08:02:25Z"
}

Similar queries