GET-trades-tokenAddress-alt

Returns DEX trades by token on Solana, where currency mint address is So1111…1112: trade amount, price in USD, protocol family, account owner, transaction signature and sum of trade amount.

By Kshitij Mahajan · saved 24 September 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}
    ) {
      Trade {
        Amount
        PriceInUSD
        Dex {
          ProtocolFamily
        }
        Account {
          Owner
        }
      }
      Transaction {
        Signature
      }
      volume: sum(of: Trade_Amount)
    }
  }
}

Similar queries