bsc top100 traders

Returns the latest 5 DEX trades by token on BNB Chain, where currency smart contract is 0x506B…989F, side currency smart contract is 0x4200…0006 and DEX smart contract is 0x4DAd…a7E5: block date, sum of trade amount, trade price, currency name, protocol name, smart contract, side currency name and 2 more fields.

By lee · saved 16 October 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: bsc) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_datefield"}
      where: {Trade: {Currency: {SmartContract: {is: "0x506BEb7965FC7053059006c7ab4C62c02C2D989F"}}, Side: {Currency: {SmartContract: {is: "0x4200000000000000000000000000000000000006"}}}, Dex: {SmartContract: {is: "0x4DAd1171096AbbA835bf1D377Bb4f580B8B4a7E5"}}}}
      limit: {count: 5}
    ) {
      Block {
        datefield: Date(interval: {in: days, count: 1})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
        Currency {
          Name
        }
        Dex {
          ProtocolName
          SmartContract
        }
        Side {
          Currency {
            Name
            SmartContract
          }
        }
      }
      count
    }
  }
}

Similar queries