Trading Terminal Final

Returns 10 DEX trades and arguments on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0xe9e7…7d56 and smart contract address is 0xBCfC…2812, sorted by trade amount, highest first: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 18 more fields.

By SayonSaiDutta · saved 11 February 2022 · Bitquery API v1

What it returns

Filters

The query

{
  OHLC: ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10, asc: "timeInterval.minute"}
      date: {since: "2020-11-01"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      timeInterval {
        minute(count: 5)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
  New_Pairs: ethereum(network: bsc) {
    arguments(
      smartContractAddress: {is: "0xBCfCcbde45cE874adCB698cC183deBcF17952812"}
      smartContractEvent: {is: "PairCreated"}
      argument: {is: "pair"}
      options: {desc: "block.height", limit: 9}
    ) {
      block {
        height
      }
      argument {
        name
      }
      reference {
        address
      }
    }
  }
  Trade_Volume_For_DEX: ethereum(network: ethereum) {
    dexTrades(exchangeName: {is: "Uniswap"}) {
      count
      tradeAmount(calculate: sum, in: USD)
      medianTrade: tradeAmount(calculate: median, in: USD)
      averageTrade : tradeAmount (calculate: average, in: USD)
    }
  }
  Most_Traded_Ethereum_Tokens: ethereum(network: ethereum) {
    transfers(
      options: {desc: "count", limit: 10, offset: 0}
      amount: {gt: 0}
      date: {since: "2021-07-01", till: "2022-02-09T23:59:59"}
    ) {
      currency {
        symbol
        address
      }
      count
      senders: count(uniq: senders)
      receivers: count(uniq: receivers)
      days: count(uniq: dates)
      from_date: minimum(of: date)
      till_date: maximum(of: date)
      amount
    }
  }
	Gas_Unit_Price_By_Date: ethereum(network: ethereum) {
    transactions(options: {asc: "date.date"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      gasPrice
      gasValue
      average: gasValue(calculate: average)
      maxGasPrice: gasPrice(calculate: maximum)
      medianGasPrice: gasPrice(calculate: median)
    }
  }
  Gas_Cost_By_Date: ethereum(network: ethereum) {
    transactions(options: {asc: "date.date"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      gasPrice
      gasValue
      average: gasValue(calculate: average)
      maxGasPrice: gasPrice(calculate: maximum)
      medianGasPrice: gasPrice(calculate: median)
    }
  }
  Gas_Price_By_Date: ethereum(network: ethereum) {
    transactions(options: {asc: "date.date"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      gasPrice
      gasValue
      average: gasValue(calculate: average)
      maxGasPrice: gasPrice(calculate: maximum)
      medianGasPrice: gasPrice(calculate: median)
    }
  }
  Trades_By_Time: ethereum(network: ethereum) {
    dexTrades(options: {asc: "date.date"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      trades: countBigInt
      traders: countBigInt(uniq: takers)
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: buy_currency)
    }
  }
	Trade_Takers: ethereum(network: ethereum) {
    dexTrades(options: {asc: "date.date"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      trades: countBigInt
      traders: countBigInt(uniq: takers)
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: buy_currency)
    }
  }
	Trade_Currencies_By_Time: ethereum(network: ethereum) {
    dexTrades(options: {asc: "date.date"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      trades: countBigInt
      traders: countBigInt(uniq: takers)
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: buy_currency)
    }
  }
	DEX_Smart_Contracts_By_Time: ethereum(network: ethereum) {
    dexTrades(options: {asc: "date.date"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      trades: countBigInt
      traders: countBigInt(uniq: takers)
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: buy_currency)
    }
  }
  DEX_Trades_By_Exchange: ethereum(network: ethereum) {
    dexTrades(options: {asc: "date.date"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      exchange {
        fullName
      }
      count
      tradeAmount(in: USD)
    }
  }
	Amount_Of_DEX_Trades_by_Exchange: ethereum(network: ethereum) {
    dexTrades(options: {desc: "tradeAmount"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      exchange {
        fullName
      }
      trades: count
      tradeAmount(in: USD)
      currencies: count(uniq: buy_currency)
      contracts: count(uniq: smart_contracts)
    }
  }
  DEX_Exchanges: ethereum(network: ethereum) {
    dexTrades(options: {desc: "tradeAmount"}, date: {since: "2022-01-13", till: "2022-02-11T23:59:59"}) {
      exchange {
        fullName
      }
      trades: count
      tradeAmount(in: USD)
      currencies: count(uniq: buy_currency)
      contracts: count(uniq: smart_contracts)
    }
  }

}

Similar queries