Roaring Kitty Example

Returns the latest 1000 DEX trades by token on Solana, where currency mint address is EKEWAk…KQHp: block date, sum of trade amount, trade price, currency name, protocol name, program address, side currency name and 2 more fields.

By Nick · saved 22 May 2024 · run 110 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_datefield"}
      where: {Trade: {Currency: {MintAddress: {is: "EKEWAk7hfnwfR8DBb1cTayPPambqyC7pwNiYkaYQKQHp"}}}}
      limit: {count: 1000}
    ) {
      Block {
        datefield: Date(interval: {in: weeks, 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)
        Currency {
          Name
        }
        Dex {
          ProtocolName
          ProgramAddress
        }
        Side {
          Currency {
            Name
            ProgramAddress
          }
        }
      }
      count
    }
  }
}

Similar queries