BIT-1764

Returns the latest address detail on Ethereum, where address is 0xb4e1…c9dc, smart contract address is 0xb4e1…c9dc and time since 2022-06-12: currency name, currency symbol, date date, base amount, base currency symbol, quote amount, quote currency symbol and 3 more fields.

By Sayon Sai Dutta · saved 13 June 2022 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query BIT($address: String, $since: ISO8601DateTime, $till: ISO8601DateTime){
  ethereum{
    NameAndSymbol: address(
      address: {is: $address}
    ) {
      smartContract {
        currency {
          name
          symbol
        }
      }
    }
    Price: dexTrades(smartContractAddress: {is: $address}, options: {limit: 1, desc: "date.date"}){
      date{
        date
      }
      baseAmount
      baseCurrency{
        symbol
      }
      quoteAmount
      quoteCurrency{
        symbol
      }
      quotePrice
    }
    VolumeChangeInLast24Hours: dexTrades(
      time: {since: $since, till: $till}
      smartContractAddress: {is: $address}
    ){
      count
      tradeAmount(in: USD)
    }
    PriceChangeInLast24Hours: dexTrades(smartContractAddress: {is: $address}, options: {limit: 1, desc: "date.date"}, time: {since: $since, till: $till}){
      date{
        date
      }
      baseAmount
      baseCurrency{
        symbol
      }
      quoteAmount
      quoteCurrency{
        symbol
      }
      quotePrice
    }
  }
}

Variables

{
  "address": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
  "since": "2022-06-12T17:47:00Z",
  "till": "2022-06-13T17:47:00Z"
}

Similar queries