Im_N01

Returns 10 DEX trades on Ethereum and BNB Chain, where exchange name is Pancake v2, sell currency is not USDT, WBNB or 2 more and date since 2022-01-24, sorted by date date: buy currency name, buy currency symbol, sell currency name, sell currency symbol, date date, buy amount, maximum of block and 2 more fields.

By Divyasshree N · saved 26 January 2023 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: "date.date", limit: 10}
      date: {since: $from, till: $till}
      exchangeName: {is: "Pancake v2"}
      sellCurrency: {notIn: ["USDT", "WBNB", "BUSD", "USDC"]}
    ) {
      buyCurrency {
        name
        symbol
      }
      sellCurrency {
        name
        symbol
      }
      date {
        date
      }
      buyAmount(in: USD)
      last_price: maximum(of: block, get: price)
       median_price: price(calculate: median)
      block {
        timestamp {
          unixtime
        }
        
      }
    }
  }
}

Variables

{"limit":10,"offset":0,"network":"bsc","from":"2022-01-24T23:59:59","till":"2023-01-25","dateFormat":"%Y-%m-%d"}

Similar queries