multiple_first_trades

Returns DEX trades by token on BNB Chain, where currency smart contract is 0x7130…ad9c, 0xba2a…4c43 or 2 more, sorted by block time: block time, currency symbol, currency name, side currency symbol, side currency name, protocol name and protocol family.

By strikex admin acct · saved 20 June 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

 query ($network: evm_network, $baseCurrencies: [String!]) {
  EVM(network: $network, dataset: archive) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {in: $baseCurrencies}}}}
      orderBy: {ascending: Block_Time}
      limitBy: {count: 1, by: Trade_Currency_SmartContract}
    ) {
      Block {
        Time
      }
      Trade {
        Currency {
          Symbol
          Name
        }
        Side {
          Currency {
            Symbol
            Name
          }
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "baseCurrencies": ["0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c", "0xba2ae424d960c26247dd6c32edc70b295c744c43", "0xd6fDDe76B8C1C45B33790cc8751D5b88984c44ec", "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"]
}

Similar queries