GCR

Returns 16 DEX trades on Ethereum and BNB Chain, where buy currency is 0xbb4c…095c or 0xe9e7…7d56, sell currency is 0x3E24…7b76 and time since 2022-05-17, sorted by block height trade index: timestamp time, block height, trade index, protocol, exchange name, address address, buy amount and 9 more fields.

By LCS · saved 20 May 2022 · Bitquery API v1

What it returns

Filters

The query

      {
          ethereum(network: bsc) {
            dexTrades(
                options: {asc: ["block.height", "tradeIndex"], limit: 16, offset: 0}
                buyCurrency: {in: ["0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", "0xe9e7cea3dedca5984780bafc599bd69add087d56"]}
                sellCurrency: {in: ["0x3E2407120c12cD42f5B8d86FE1142bE19D1a7b76"]}
                time: {since: "2022-05-17T13:21:40"}
            ) {
              block {
                timestamp {
                  time(format: "%Y-%m-%d %H:%M:%S")
                }
                height
              }
              tradeIndex
              protocol
              exchange {
                name
              }
              smartContract {
                address {
                  address
                }
              }
              sellAmount: buyAmount
              sellCurrency: buyCurrency {
                address
                symbol
                decimals
              }
              buyAmount: sellAmount
              buyCurrency: sellCurrency {
                address
                symbol
                decimals
              }
              tradeAmount(in: USD)
              transaction {
                hash
                txFrom {
                  address
                }
              }
            }
          }
      }

Similar queries