buy_sell_volume

Returns DEX trades on Solana, where buy currency mint address is 124gpW…pump, market market address is F698LL…q2V5 and sell currency mint address is 124gpW…pump: buy currency name, buy currency symbol, sum of trade buy amount and sum of trade sell amount.

By Oluwatomisin · saved 1 July 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(network: solana) {
    buy:DEXTrades(
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "124gpW1VL9PfAFzdGDqtbLspBKXDp2G5MaXNdJMwpump"}}}, Market: {MarketAddress: {is: "F698LL1FoX6CbQKBxM2rNJPemt1cGpAdNFNAyjKCq2V5"}}},  Block: {Time: {since: "2024-07-01T09:34:29Z", till: "2024-07-01T10:34:29Z"}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            Symbol
          }
        }
      }
      sum(of: Trade_Buy_Amount)
    }
    
    sell:DEXTrades(
      where: {Trade: {Sell: {Currency: {MintAddress: {is: "124gpW1VL9PfAFzdGDqtbLspBKXDp2G5MaXNdJMwpump"}}}, Market: {MarketAddress: {is: "F698LL1FoX6CbQKBxM2rNJPemt1cGpAdNFNAyjKCq2V5"}}},  Block: {Time: {since: "2024-07-01T09:34:29Z", till: "2024-07-01T10:34:29Z"}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            Symbol
          }
        }
      }
      sum(of: Trade_Sell_Amount)
    }
  }
}


Similar queries