Dex trades all data

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xdb9f…2b34, time since 2022-08-08 and time till 2022-08-09, sorted by block timestamp time trade index: timestamp time, block height, trade index, protocol, full name, address address, annotation and 11 more fields.

By gaurav · saved 16 August 2022 · run 9 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: ["block.timestamp.time", "tradeIndex"]}
      time: {since: $from, till: $till}
      baseCurrency: {is: $token}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      base_amount_usd: baseAmount(in: USD)
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      quote_amount_usd: quoteAmount(in: USD)
      transaction {
        hash
        txFrom {
          address
        }
        to {
          address
        }
      }
      maker {
        address
      }
      taker {
        address
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "bsc",
  "token": "0xdb9f5150686f987fa8c84aab2f8c070e1ad42b34",
  "from": "2022-08-08T22:00:00",
  "till": "2022-08-09T19:00:00",
  "dateFormat": "%Y-%m-%d"
}

Similar queries