buys and sells of a particular token in specified time

Returns DEX trades on Solana, where buy currency mint address is Faf899…3Gvw, sell currency mint address is Faf899…3Gvw and block time since 2024-06-16: count.

By Akshat · saved 16 June 2024 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    Buys: DEXTrades(
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "Faf89929Ni9fbg4gmVZTca7eW6NFg877Jqn6MizT3Gvw"}}}}, Block: {Time: {since: "2024-06-16T16:16:00Z", till: "2024-06-16T17:16:00Z"}}}
    ){
      total_buys_in_this_1_hour: count
    }
    Sells: DEXTrades(
      where: {Trade: {Sell: {Currency: {MintAddress: {is: "Faf89929Ni9fbg4gmVZTca7eW6NFg877Jqn6MizT3Gvw"}}}}, Block: {Time: {since: "2024-06-16T16:16:00Z", till: "2024-06-16T17:16:00Z"}}}
    ){
      total_sells_in_this_1_hour: count
    }
  }
}

Similar queries