tape-initial-1

Returns one transfer on Ethereum and BNB Chain, where currency is 0x63b3…8f85, address is 0x63b3…8f85 and smart contract address is 0x63b3…8f85, sorted by time interval day, highest first: count, currency address, currency symbol, balances value, trade amount, day, base currency symbol and 7 more fields.

By Nick · saved 1 September 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query initialBitquery($pair: String!, $baseCurrency: String!, $quoteCurrency: String!) {
  ethereum(network: bsc) {
    holders: transfers(currency: {in: [$pair]}) {
      holders: count(uniq: receivers)
      txs: count(uniq: txs)
    }
    base: address(address: {is: $pair}) {
      balances(currency: {is: $baseCurrency}) {
        currency {
          address
          symbol
        }
        value
      }
    }
    quote: address(address: {is: $pair}) {
      balances(currency: {is: $quoteCurrency}) {
        currency {
          address
          symbol
        }
        value
      }
    }
    total: dexTrades(smartContractAddress: {is: $pair}, options: {}) {
      count
      totalLiquidity: tradeAmount(in: USD)
    }
    daily: dexTrades(
      options: {limit: 1, desc: "timeInterval.day"}
      smartContractAddress: {is: $pair}
      baseCurrency: {is: $baseCurrency}
    ) {
      timeInterval {
        day(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      baseAmount
      quoteAmount
      trades: count
      quotePrice
      dailyOpen: minimum(of: block, get: quote_price)
      dailyVolumeInUSD: tradeAmount(in: USD)
    }
  }
}

Variables

{
  "pair": "0x63b30de1a998e9e64fd58a21f68d323b9bcd8f85",
  "baseCurrency": "0x55d398326f99059ff775485246999027b3197955",
  "quoteCurrency": "0x2170ed0880ac9a755fd29b2688956bd959f933f8"
}

Similar queries