SHIB trades between two dates

Returns the latest 10 DEX trades on Ethereum, where base currency is 0x95ad…c4ce, date since 2023-01-11 and date till 2023-01-13: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By gaurav · saved 13 February 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {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
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "token": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce",
  "from": "2023-01-11",
  "till": "2023-01-13",
  "dateFormat": "%Y-%m-%d"
}

Similar queries