historic buys and sell volume

Returns DEX trades by token on Solana, where currency mint address is MEFNBX…m21u: currency name, currency mint address, currency symbol and sum of trade amount.

By Kshitij Mahajan · saved 11 December 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "MEFNBXixkEbait3xn9bkm8WsJzXtVsaJEn4c8Sam21u"}}}}
    ) {
      Trade {
        Currency {
          Name
          MintAddress
          Symbol
        }
      }
      buys:sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sells:sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Similar queries