date filter polygon

Returns the latest 150 DEX trades on Ethereum and Polygon, where base currency is 0x0d50…1270 and date after 2022-05-01: quote price, unixtime, full name, quote amount, quote currency address, quote currency symbol, side and 3 more fields.

By gaurav · saved 17 November 2022 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $baseCurrency: String!, $quoteCurrency: String!, $limit: Int) {
  network: ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.timestamp.unixtime"], limit: $limit}
      baseCurrency: {is: $baseCurrency}
      date: {after: "2022-05-01"}
    ) {
      quotePrice
      block {
        timestamp {
          unixtime
        }
      }
      exchange {
        fullName
      }
      quoteAmount
      quoteCurrency(quoteCurrency: {is: $quoteCurrency}) {
        address
        symbol
      }
      side
      sellAmountInEth: sellAmount(in: ETH)
      transaction {
        hash
      }
      maker {
        address
      }
    }
  }
}

Variables

{
  "baseCurrency": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
  "limit": 150,
  "network": "matic",
  "quoteCurrency": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f"
}

Similar queries