markets

Returns the latest DEX trades by token on Solana, where currency mint address is G49ck2…pump, side currency mint address is So1111…1112 or 111111…1111 and block time since 2025-08-13: block time, sum of trade amount, trade price, side currency mint address, market address, currency name, currency mint address and 3 more fields.

By Divyasshree · saved 19 August 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query HistoryMinuteOhlcPrice($ca: String!, $currencies: [String!], $offset: Int) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: $ca}}, Side: {Currency: {MintAddress: {in: $currencies}}, AmountInUSD: {gt: "10"}}, PriceAsymmetry: {lt: 0.1}}, Transaction: {Result: {Success: true}}, Block: {Time: {since: "2025-08-13T23:36:00Z", till: "2025-08-13T23:38:00Z"}}}
      limit: {offset: $offset}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        Side {
          Currency {
            MintAddress
          }
        }
        Market {
          MarketAddress
        }
        Currency {
          Name
          MintAddress
        }
        Dex {
          ProtocolFamily
          ProtocolName
        }
      }
      count
    }
  }
}

Variables

{
  "ca": "G49ck2CFHpXnbkswkQoUpL1dBm1XFZcTj8A6W6Ampump",
  "currencies": [
    "So11111111111111111111111111111111111111112",
    "11111111111111111111111111111111"
  ],
  "offset": 0
}

Similar queries