BGEO

Returns 1000 DEX trades by token on BNB Chain, where currency smart contract is 0xc342…4972, sorted by USD, highest first: decimals, currency symbol, smart contract, fungible, currency name, trade amount, amount in USD and 8 more fields.

By Aleksey · saved 24 September 2024 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query topTokens($network: evm_network) {
  EVM(network: $network) {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {
            SmartContract: {
              is: "0xc342774492b54ce5f8ac662113ed702fc1b34972"
            }
          }
        }
      }
      orderBy: {descendingByField: "usd"}, limit: {count: 1000}) {
      Trade {
        Currency {
          Decimals
          Symbol
          SmartContract
          Fungible
          Name
        }
        Amount(maximum: Block_Number)
        AmountInUSD(maximum: Block_Number)
      }
      pairs: uniq(of: Trade_Side_Currency_SmartContract)
      dexes: uniq(of: Trade_Dex_SmartContract)
      amount: sum(of: Trade_Amount)
      usd: sum(of: Trade_AmountInUSD)
      usd2: sum(of: Trade_Side_AmountInUSD)
      buyers: uniq(of: Trade_Buyer)
      sellers: uniq(of: Trade_Sender)
      count
    }
  }
}

Variables

{
  "network": "bsc"
}

Similar queries