backup3

Returns 10 DEX trades by token and transfers on Solana, where currency mint address is uoF4Zu…pump, side currency mint address is So1111…1112 and block time after 2025-02-06, sorted by block time: block time, sum of trade amount, price in USD, trade price and count.

By James · saved 7 February 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($MINT_ADDRESS: String!, $COUNT: Int!, $AFTER_TIME_STAMP: DateTime!) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Currency: {MintAddress: {is: $MINT_ADDRESS}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {after: $AFTER_TIME_STAMP}}}
      limit: {count: $COUNT}
    ) {
      Block {
        Time(interval: {in: seconds, count: 1})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: PriceInUSD(maximum: Trade_Price)
        low: PriceInUSD(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
      }
      count
    }
    Transfers(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Transfer: {Currency: {MintAddress: {is: $MINT_ADDRESS}}}}
      
    )
  }
}

Variables

{
  "MINT_ADDRESS": "uoF4ZuumVyv9FP4afKZbgdWAw6K7L7e8t4XAomipump",
  "COUNT": 10,
  "AFTER_TIME_STAMP": "2025-02-06T22:56:00Z"
}

Similar queries