[V2] Candles

Returns 10 DEX trades on BNB Chain, where block time since 2022-07-20 and block time till 2022-07-20, sorted by block number: buy amount, buy amount in USD, buy decimals, buy currency symbol, buy smart contract, buy buyer, sell amount and 15 more fields.

By Andrej Narozny · saved 24 July 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      where: {Block: {Time: {since: "2022-07-20T01:36:32Z", till: "2022-07-20T01:37:32Z"}}}
      limit: {count: 10}
      orderBy: {ascending: Block_Number}
    ) {
      Trade {
        Buy {
          Amount
          AmountInUSD
          Currency {
            Decimals
            Symbol
            SmartContract
          }
          Buyer
        }
        Sell {
          Amount
          AmountInUSD
          Currency {
            Decimals
            Name
            SmartContract
            Symbol
          }
          Seller
        }
        Dex {
          ProtocolFamily
          ProtocolName
          SmartContract
        }
      }
      Block {
        Number
        Time
        Hash
      }
      Transaction {
        Hash
        Index
      }
      TransactionStatus {
        Success
      }
    }
  }
}

Variables

{
  "from": "2022-07-20T01:36:32Z",
  "to": "2022-07-20T01:37:32Z"
}

Similar queries